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)