summaryrefslogtreecommitdiff
path: root/plugin_loader/static/library.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugin_loader/static/library.js')
-rw-r--r--plugin_loader/static/library.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugin_loader/static/library.js b/plugin_loader/static/library.js
index 05e08ff2..2ec6ce89 100644
--- a/plugin_loader/static/library.js
+++ b/plugin_loader/static/library.js
@@ -39,4 +39,12 @@ async function call_plugin_method(method_name, arg_object={}) {
'method_name': method_name,
'args': arg_object
});
+}
+
+async function execute_in_tab(tab, run_async, code) {
+ return await call_server_method("execute_in_tab", {
+ 'tab': tab,
+ 'run_async': run_async,
+ 'code': code
+ });
} \ No newline at end of file