From fe9faefd0bb01212299259bcdcc431d24493d963 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 12 Apr 2022 21:59:09 +0200 Subject: Added functions to inject and remove css from tabs --- plugin_loader/static/library.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'plugin_loader/static/library.js') diff --git a/plugin_loader/static/library.js b/plugin_loader/static/library.js index 2ec6ce89..abd4453f 100644 --- a/plugin_loader/static/library.js +++ b/plugin_loader/static/library.js @@ -47,4 +47,18 @@ async function execute_in_tab(tab, run_async, code) { 'run_async': run_async, 'code': code }); +} + +async function inject_css_into_tab(tab, style) { + return await call_server_method("inject_css_into_tab", { + 'tab': tab, + 'style': style + }); +} + +async function remove_css_from_tab(tab, css_id) { + return await call_server_method("remove_css_from_tab", { + 'tab': tab, + 'css_id': css_id + }); } \ No newline at end of file -- cgit v1.2.3