aboutsummaryrefslogtreecommitdiff
path: root/theme.js
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2025-11-12 19:08:49 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2025-11-12 19:08:49 +0100
commitca647a41364001b6f996715bd2313b44ac28a4d3 (patch)
treec70ce21c53c862bfa94afaea4ee83c67e8d72870 /theme.js
parent40154dc1408f3eb7667985304d363848f40bbb1e (diff)
theme: add to DOM as well, instead of just shadow-doms
Diffstat (limited to 'theme.js')
-rw-r--r--theme.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/theme.js b/theme.js
index a04f660..975bacb 100644
--- a/theme.js
+++ b/theme.js
@@ -2,6 +2,7 @@ const global_sheets = [];
export function add_css(sheets) {
global_sheets.push(...sheets);
+ document.adoptedStyleSheets = global_sheets;
}
export function css() {