summaryrefslogtreecommitdiffstats
path: root/content/script.js
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-05-15 21:00:40 +0200
committerVolpeon <git@volpeon.ink>2021-05-15 21:00:40 +0200
commit380fccc62982d7070acb61886c6adf357e8e4c5c (patch)
tree728504d6c4c32f397eb10192a596ca0a45f4b9c1 /content/script.js
parentFix overlapping box-shadows in card grid, load theme from localStorage (diff)
downloadvolpeon.ink-380fccc62982d7070acb61886c6adf357e8e4c5c.tar.gz
volpeon.ink-380fccc62982d7070acb61886c6adf357e8e4c5c.tar.bz2
volpeon.ink-380fccc62982d7070acb61886c6adf357e8e4c5c.zip
Separate script file
Diffstat (limited to 'content/script.js')
-rw-r--r--content/script.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/script.js b/content/script.js
new file mode 100644
index 0000000..649da9e
--- /dev/null
+++ b/content/script.js
@@ -0,0 +1,5 @@
1const lightTheme = localStorage.getItem("light");
2
3if (lightTheme === "true") {
4 document.documentElement.classList.add("t-light");
5}