diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2022-09-24 16:41:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-24 16:41:21 -0400 |
commit | 115c3ce3d74188bb33d73f33f7546d05d6acbee8 (patch) | |
tree | 9cadc8d975b04d62d5909524655fa63beaa964ef /ext/js/comm/api.js | |
parent | 1e91bf151f43ad05138e862ba4a03abad6929e5f (diff) |
API loadExtensionScripts (#2233)
* Inject MV3 scripts immediately
* Add api.loadExtensionScripts
Diffstat (limited to 'ext/js/comm/api.js')
-rw-r--r-- | ext/js/comm/api.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/js/comm/api.js b/ext/js/comm/api.js index 2ffe2d8c..2adc9a99 100644 --- a/ext/js/comm/api.js +++ b/ext/js/comm/api.js @@ -176,6 +176,10 @@ class API { return this._invoke('findAnkiNotes', {query}); } + loadExtensionScripts(files) { + return this._invoke('loadExtensionScripts', {files}); + } + // Utilities _createActionPort(timeout=5000) { |