Move calling of script _startup inside try-catch block

This commit is contained in:
MrOtherGuy 2020-02-01 15:05:59 +02:00
parent 9bd411aa33
commit eb318ef7a4
2 changed files with 6 additions and 6 deletions

View file

@ -158,12 +158,12 @@ let _uc = {
if (!script.regex.test(win.location.href) || !script.isEnabled) {
return
}
if (script.onlyonce && script.isRunning) {
_uc.maybeRunStartUp(script,win)
return
}
try {
if (script.onlyonce && script.isRunning) {
_uc.maybeRunStartUp(script,win)
return
}
Services.scriptloader.loadSubScript(`chrome://userscripts/content/${script.filename}`, win);
script.isRunning = true;

View file

@ -17,4 +17,4 @@ try {
Cu.import('chrome://userchromejs/content/boot.jsm');
}
} catch(ex) {};
} catch(ex) {};