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.js14
1 files changed, 14 insertions, 0 deletions
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