summaryrefslogtreecommitdiff
path: root/examples/docs/public/theme.js
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-08-26 15:04:19 -0700
committerGravatar Fred K. Schott <fkschott@gmail.com> 2021-08-26 15:04:44 -0700
commitfdd701dd88529ee0d4911283e35be86b000ed1fc (patch)
tree61d450d04633eece1c12b350b9ef3512dc2fa7b7 /examples/docs/public/theme.js
parent84c18d3030c98b2770144a8a27d1cca7bbfedc1d (diff)
parent2e8db7ad2384b756894eac6be72bcf720f7f28fa (diff)
downloadastro-fdd701dd88529ee0d4911283e35be86b000ed1fc.tar.gz
astro-fdd701dd88529ee0d4911283e35be86b000ed1fc.tar.zst
astro-fdd701dd88529ee0d4911283e35be86b000ed1fc.zip
Merge branch 'okikio/main' (#1111)
Diffstat (limited to 'examples/docs/public/theme.js')
-rw-r--r--examples/docs/public/theme.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/examples/docs/public/theme.js b/examples/docs/public/theme.js
deleted file mode 100644
index d75d0bf99..000000000
--- a/examples/docs/public/theme.js
+++ /dev/null
@@ -1,8 +0,0 @@
-(() => {
- const root = document.documentElement;
- if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
- root.classList.add('theme-dark');
- } else {
- root.classList.remove('theme-dark');
- }
-})();