Add fallback for customized toolbars that error on load

Fixes #1955
This commit is contained in:
JannisX11 2023-07-16 17:13:34 +02:00
parent b061fe4a0e
commit 7558bc09db

View File

@ -1449,7 +1449,13 @@ class Toolbar {
node: toolbar_menu
})
if (data) {
this.build(data)
try {
this.build(data);
} catch (err) {
console.error(`Error building toolbar "${this.id}":`, err);
delete BARS.stored[this.id];
this.build(data);
}
}
}
build(data, force) {