fix: change execution mode

This commit is contained in:
2026-03-15 21:10:08 -05:00
parent 9319228ef6
commit a6c889f76a

View File

@@ -43,13 +43,12 @@
</button> </button>
<script is:inline> <script is:inline>
const applyTheme = () => { (() => {
const isDark = const isDark =
localStorage.theme === 'dark' || localStorage.theme === 'dark' ||
(!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches); (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches);
document.documentElement.classList.toggle('dark', isDark); document.documentElement.classList.toggle('dark', isDark);
}; })();
applyTheme();
</script> </script>
<script> <script>