aboutsummaryrefslogtreecommitdiff
path: root/ext/js/background/backend.js
diff options
context:
space:
mode:
authorDarius Jahandarie <djahandarie@gmail.com>2023-08-19 18:38:34 +0900
committerGitHub <noreply@github.com>2023-08-19 18:38:34 +0900
commita00a56c429347d872bfd6fe1597e6f8991cf7217 (patch)
treeec0342d9c48382b3457df0cfa4bfa5b485980f40 /ext/js/background/backend.js
parenta59d0c8db30e852c901dfd1f35187ec2395bf464 (diff)
parent07333a2807fc23875a3ffa34f97ea0ff1e44d3d6 (diff)
Merge pull request #209 from praschke/firefox-fixes
Firefox fixes
Diffstat (limited to 'ext/js/background/backend.js')
-rw-r--r--ext/js/background/backend.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js
index db6cfada..dd233abb 100644
--- a/ext/js/background/backend.js
+++ b/ext/js/background/backend.js
@@ -593,7 +593,7 @@ class Backend {
async _onApiInjectStylesheet({type, value}, sender) {
const {frameId, tab} = sender;
if (!isObject(tab)) { throw new Error('Invalid tab'); }
- return await this._scriptManager.injectStylesheet(type, value, tab.id, frameId, false, true, 'document_start');
+ return await this._scriptManager.injectStylesheet(type, value, tab.id, frameId, false);
}
async _onApiGetStylesheetContent({url}) {
@@ -790,7 +790,7 @@ class Backend {
if (typeof tabId !== 'number') { throw new Error('Sender has invalid tab ID'); }
const {frameId} = sender;
for (const file of files) {
- await this._scriptManager.injectScript(file, tabId, frameId, false, true, 'document_start');
+ await this._scriptManager.injectScript(file, tabId, frameId, false);
}
}