fix: import settings on welcome, progress bar, custom js etc

This commit is contained in:
David Ralph
2021-07-04 12:28:28 +01:00
parent 19bc802f09
commit 44fc24951f
4 changed files with 56 additions and 15 deletions

View File

@@ -215,10 +215,6 @@
"name": "backgroundFilter",
"value": "grayscale"
},
{
"name": "navbarHover",
"value": false
},
{
"name": "apiQuality",
"value": "high"

View File

@@ -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') {