mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2026-03-17 12:21:03 -07:00
Move calling of script _startup inside try-catch block
This commit is contained in:
parent
9bd411aa33
commit
eb318ef7a4
2 changed files with 6 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -17,4 +17,4 @@ try {
|
|||
Cu.import('chrome://userchromejs/content/boot.jsm');
|
||||
}
|
||||
|
||||
} catch(ex) {};
|
||||
} catch(ex) {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue