aboutsummaryrefslogtreecommitdiff
path: root/ext/js/background/script-manager.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2022-09-24 16:41:21 -0400
committerGitHub <noreply@github.com>2022-09-24 16:41:21 -0400
commit115c3ce3d74188bb33d73f33f7546d05d6acbee8 (patch)
tree9cadc8d975b04d62d5909524655fa63beaa964ef /ext/js/background/script-manager.js
parent1e91bf151f43ad05138e862ba4a03abad6929e5f (diff)
API loadExtensionScripts (#2233)
* Inject MV3 scripts immediately * Add api.loadExtensionScripts
Diffstat (limited to 'ext/js/background/script-manager.js')
-rw-r--r--ext/js/background/script-manager.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/js/background/script-manager.js b/ext/js/background/script-manager.js
index 17b95242..3deb74fe 100644
--- a/ext/js/background/script-manager.js
+++ b/ext/js/background/script-manager.js
@@ -290,6 +290,7 @@ class ScriptManager {
_injectScriptMV3(file, tabId, frameId, allFrames) {
return new Promise((resolve, reject) => {
const details = {
+ injectImmediately: true,
files: [file],
target: {tabId, allFrames}
};