Skip to content

Commit e0e83f3

Browse files
committed
Add is:inline to the script tag
1 parent e041d41 commit e0e83f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/layouts/MainLayout.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import TopNav from "../components/TopNav.astro";
44
import Footer from "../components/Footer.astro";
55
---
66

7-
<script>
7+
<script is:inline>
88
// On page load or when changing themes, best to add inline in `head` to avoid FOUC
99
if (
1010
localStorage.theme === "dark" ||

0 commit comments

Comments
 (0)