mirror of
https://github.com/elder-plinius/P4RS3LT0NGV3.git
synced 2026-07-25 05:20:49 +02:00
Resilience: guard against missing window.transforms to prevent Vue mount failure (tabs appearing all at once)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user