mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Fix error reporting in registerInjectables()
This commit is contained in:
parent
1a9c63254c
commit
b2c4242138
1 changed files with 2 additions and 2 deletions
|
|
@ -616,7 +616,7 @@ async function registerInjectables() {
|
|||
await browser.scripting.unregisterContentScripts({ ids: toRemove });
|
||||
localRemove('$scripting.unregisterContentScripts');
|
||||
} catch(reason) {
|
||||
localWrite('$scripting.unregisterContentScripts', reason);
|
||||
localWrite('$scripting.unregisterContentScripts', `${reason}`);
|
||||
console.info(reason);
|
||||
}
|
||||
}
|
||||
|
|
@ -627,7 +627,7 @@ async function registerInjectables() {
|
|||
await browser.scripting.registerContentScripts(toAdd);
|
||||
localRemove('$scripting.registerContentScripts');
|
||||
} catch(reason) {
|
||||
localWrite('$scripting.registerContentScripts', reason);
|
||||
localWrite('$scripting.registerContentScripts', `${reason}`);
|
||||
console.info(reason);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue