diff options
Diffstat (limited to 'ext/js/background/backend.js')
-rw-r--r-- | ext/js/background/backend.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index f48a87f8..db43ec57 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -564,7 +564,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); + return await this._scriptManager.injectStylesheet(type, value, tab.id, frameId, false, true, 'document_start'); } async _onApiGetStylesheetContent({url}) { @@ -2156,7 +2156,7 @@ class Backend { if (file === null) { return; } - await this._scriptManager.injectScript(file, tabId, frameId); + await this._scriptManager.injectScript(file, tabId, frameId, false, true, 'document_start'); } async _getNormalizedDictionaryDatabaseMedia(targets) { |