Skip to content

Commit

Permalink
chore: added is:inline directive to the script tag to inline the script
Browse files Browse the repository at this point in the history
  • Loading branch information
rxyhn committed Sep 26, 2024
1 parent 216e3da commit 56dfa4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ThemeToggle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const { id } = Astro.props;
<Icon name="moon" class="hidden size-full dark:block" />
</button>

<script define:vars={{ id }}>
<script is:inline define:vars={{ id }}>
const setToggleListener = () => {
let toggleBtn = document.getElementById(id);
const handleToggleClick = () => {
Expand Down

0 comments on commit 56dfa4d

Please sign in to comment.