diff options
Diffstat (limited to 'ext/js/background')
-rw-r--r-- | ext/js/background/script-manager.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/js/background/script-manager.js b/ext/js/background/script-manager.js index 1142121f..353c50e3 100644 --- a/ext/js/background/script-manager.js +++ b/ext/js/background/script-manager.js @@ -129,7 +129,7 @@ export async function unregisterContentScript(id) { * @returns {chrome.scripting.RegisteredContentScript} */ function createContentScriptRegistrationOptions(details, id) { - const {css, js, allFrames, matches, runAt} = details; + const {css, js, allFrames, matches, runAt, world} = details; /** @type {chrome.scripting.RegisteredContentScript} */ const options = { id: id, @@ -150,5 +150,8 @@ function createContentScriptRegistrationOptions(details, id) { if (typeof runAt !== 'undefined') { options.runAt = runAt; } + if (typeof world !== 'undefined') { + options.world = world; + } return options; } |