File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed
Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ let links: NavBarLink[] = navBarConfig.links.map(
6161</div >
6262
6363<script >
64-
6564function switchTheme() {
6665 if (localStorage.theme === 'dark') {
6766 document.documentElement.classList.remove('dark');
@@ -102,10 +101,6 @@ function loadButtonScript() {
102101}
103102
104103loadButtonScript();
105-
106- document.addEventListener('astro:after-swap', () => {
107- loadButtonScript();
108- }, { once: false });
109104</script >
110105
111106{ import .meta .env .PROD && <script is :inline define :vars = { {scriptUrl: url (' /pagefind/pagefind.js' )}} >
Original file line number Diff line number Diff line change @@ -337,10 +337,6 @@ function init() {
337337/* Load settings when entering the site */
338338init();
339339
340- /* Load settings before swapping */
341- /* astro:after-swap event happened before swap animation */
342- document.addEventListener('astro:after-swap', init);
343-
344340const setup = () => {
345341 // TODO: temp solution to change the height of the banner
346342/*
You can’t perform that action at this time.
0 commit comments