diff options
| author | WerWolv <werwolv98@gmail.com> | 2022-04-12 21:15:31 +0200 |
|---|---|---|
| committer | WerWolv <werwolv98@gmail.com> | 2022-04-12 21:15:36 +0200 |
| commit | 012274b1a09f6959d41e9aa8bd69f5c30cc8f871 (patch) | |
| tree | dd6a2815d4a4a7b948bce5493c04aebb2cfdfb92 /plugin_loader/static | |
| parent | 070d11154f0ec761fba938a6f27b4a9111988412 (diff) | |
| download | decky-loader-012274b1a09f6959d41e9aa8bd69f5c30cc8f871.tar.gz decky-loader-012274b1a09f6959d41e9aa8bd69f5c30cc8f871.zip | |
Added library function to execute code in a different tab
Diffstat (limited to 'plugin_loader/static')
| -rw-r--r-- | plugin_loader/static/library.js | 8 |
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 |
