mirror of
https://github.com/mue/mue.git
synced 2026-07-07 22:23:37 +02:00
fix: import settings on welcome, progress bar, custom js etc
This commit is contained in:
@@ -215,10 +215,6 @@
|
||||
"name": "backgroundFilter",
|
||||
"value": "grayscale"
|
||||
},
|
||||
{
|
||||
"name": "navbarHover",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"name": "apiQuality",
|
||||
"value": "high"
|
||||
|
||||
@@ -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