From 012274b1a09f6959d41e9aa8bd69f5c30cc8f871 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 12 Apr 2022 21:15:31 +0200 Subject: Added library function to execute code in a different tab --- plugin_loader/static/library.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugin_loader/static/library.js') 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 -- cgit v1.2.3