Added library function to execute code in a different tab

This commit is contained in:
WerWolv
2022-04-12 21:15:31 +02:00
parent 070d11154f
commit 012274b1a0
3 changed files with 33 additions and 18 deletions
+8
View File
@@ -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
});
}