summaryrefslogtreecommitdiffstats
path: root/static/theme-init.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/theme-init.js')
-rw-r--r--static/theme-init.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/static/theme-init.js b/static/theme-init.js
new file mode 100644
index 0000000..95b9a95
--- /dev/null
+++ b/static/theme-init.js
@@ -0,0 +1,5 @@
+(function() {
+ if (localStorage.getItem('nymdrop-theme') === 'light') {
+ document.documentElement.setAttribute('data-theme', 'light');
+ }
+})();