summaryrefslogtreecommitdiff
path: root/plugin_loader/static/library.js
diff options
context:
space:
mode:
authorWerWolv <werwolv98@gmail.com>2022-04-12 21:59:09 +0200
committerWerWolv <werwolv98@gmail.com>2022-04-12 21:59:09 +0200
commitfe9faefd0bb01212299259bcdcc431d24493d963 (patch)
treea04b54f5660e6b55b4ac1272f79ae1a0c67e92c9 /plugin_loader/static/library.js
parent012274b1a09f6959d41e9aa8bd69f5c30cc8f871 (diff)
downloaddecky-loader-fe9faefd0bb01212299259bcdcc431d24493d963.tar.gz
decky-loader-fe9faefd0bb01212299259bcdcc431d24493d963.zip
Added functions to inject and remove css from tabs
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