summaryrefslogtreecommitdiff
path: root/examples/docs/src/components/HeadCommon.astro
diff options
context:
space:
mode:
authorGravatar FredKSchott <FredKSchott@users.noreply.github.com> 2022-08-06 04:39:26 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-08-06 04:39:26 +0000
commit4de35f3b703db52f51463769e3aef4b23d2864e3 (patch)
treec6fea68d6368cf8ddfb098ac3159be71f265692a /examples/docs/src/components/HeadCommon.astro
parent24c8e7d853aa34aaa01204f715901c2610bfd9d6 (diff)
downloadastro-4de35f3b703db52f51463769e3aef4b23d2864e3.tar.gz
astro-4de35f3b703db52f51463769e3aef4b23d2864e3.tar.zst
astro-4de35f3b703db52f51463769e3aef4b23d2864e3.zip
[ci] format
Diffstat (limited to 'examples/docs/src/components/HeadCommon.astro')
-rw-r--r--examples/docs/src/components/HeadCommon.astro12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/docs/src/components/HeadCommon.astro b/examples/docs/src/components/HeadCommon.astro
index bc3a3955a..275aa315a 100644
--- a/examples/docs/src/components/HeadCommon.astro
+++ b/examples/docs/src/components/HeadCommon.astro
@@ -1,6 +1,6 @@
---
-import "../styles/theme.css";
-import "../styles/index.css";
+import '../styles/theme.css';
+import '../styles/index.css';
---
<!-- Global Metadata -->
@@ -28,11 +28,11 @@ import "../styles/index.css";
<!-- This is intentionally inlined to avoid FOUC -->
<script is:inline>
const root = document.documentElement;
- const theme = localStorage.getItem("theme");
- if (theme === "dark" || (!theme && window.matchMedia("(prefers-color-scheme: dark)").matches)) {
- root.classList.add("theme-dark");
+ const theme = localStorage.getItem('theme');
+ if (theme === 'dark' || (!theme && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
+ root.classList.add('theme-dark');
} else {
- root.classList.remove("theme-dark");
+ root.classList.remove('theme-dark');
}
</script>