diff options
author | 2021-05-27 14:17:27 +0000 | |
---|---|---|
committer | 2021-05-27 14:17:27 +0000 | |
commit | a5782a37c8c72b0a926107552649b5adc30eb7aa (patch) | |
tree | 8e06ccdcfd1bd489ff2aa1f45da88e95d5db41f9 /examples/doc/public/theme.js | |
parent | 5247a23cbe534d79cdf4abe4c200a351dddc5dc2 (diff) | |
download | astro-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.js | 6 |
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'); } -})() +})(); |