summaryrefslogtreecommitdiff
path: root/examples/doc/public/theme.js
diff options
context:
space:
mode:
authorGravatar natemoo-re <natemoo-re@users.noreply.github.com> 2021-05-27 14:17:27 +0000
committerGravatar GitHub Actions <actions@github.com> 2021-05-27 14:17:27 +0000
commita5782a37c8c72b0a926107552649b5adc30eb7aa (patch)
tree8e06ccdcfd1bd489ff2aa1f45da88e95d5db41f9 /examples/doc/public/theme.js
parent5247a23cbe534d79cdf4abe4c200a351dddc5dc2 (diff)
downloadastro-a5782a37c8c72b0a926107552649b5adc30eb7aa.tar.gz
astro-a5782a37c8c72b0a926107552649b5adc30eb7aa.tar.zst
astro-a5782a37c8c72b0a926107552649b5adc30eb7aa.zip
[ci] yarn format
Diffstat (limited to 'examples/doc/public/theme.js')
-rw-r--r--examples/doc/public/theme.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/doc/public/theme.js b/examples/doc/public/theme.js
index 1296b49b3..d75d0bf99 100644
--- a/examples/doc/public/theme.js
+++ b/examples/doc/public/theme.js
@@ -1,8 +1,8 @@
(() => {
const root = document.documentElement;
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
- root.classList.add('theme-dark')
+ root.classList.add('theme-dark');
} else {
- root.classList.remove('theme-dark')
+ root.classList.remove('theme-dark');
}
-})()
+})();