From 32843fdd96e04fd755e42b8976dbfe4f0db96d68 Mon Sep 17 00:00:00 2001 From: EP Date: Wed, 20 Aug 2025 19:36:50 -0700 Subject: [PATCH] Resilience: guard against missing window.transforms to prevent Vue mount failure (tabs appearing all at once) --- js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 21d1190..e6f2c5f 100644 --- a/js/app.js +++ b/js/app.js @@ -25,7 +25,8 @@ window.app = new Vue({ technical: ['Brainfuck', 'Mathematical Notation', 'Chemical Symbols'], randomizer: ['Random Mix'] }, - transforms: Object.entries(window.transforms).map(([key, transform]) => ({ + // Be resilient if transforms.js fails to load + transforms: Object.entries(window.transforms || {}).map(([key, transform]) => ({ name: transform.name, func: transform.func.bind(transform), preview: transform.preview.bind(transform)