mirror of
https://github.com/mue/mue.git
synced 2026-07-15 13:03:55 +02:00
fix: import settings on welcome, progress bar, custom js etc
This commit is contained in:
@@ -92,8 +92,12 @@ export default class SettingsFunctions {
|
||||
|
||||
const js = localStorage.getItem('customjs');
|
||||
if (js) {
|
||||
// eslint-disable-next-line no-eval
|
||||
eval(js);
|
||||
try {
|
||||
// eslint-disable-next-line no-eval
|
||||
eval(js);
|
||||
} catch (e) {
|
||||
console.error('Failed to run custom JS: ', e);
|
||||
}
|
||||
}
|
||||
|
||||
if (localStorage.getItem('experimental') === 'true') {
|
||||
|
||||
Reference in New Issue
Block a user