Settings stuff is fixed now

This commit is contained in:
MotorTruck1221
2025-03-18 18:28:04 -06:00
parent eef8683505
commit dcae7f01fe
2 changed files with 2 additions and 9 deletions
-1
View File
@@ -10,7 +10,6 @@ const viteWispServer = (): Plugin => {
name: 'vite-wisp-server',
configureServer(server) {
server.httpServer?.on('upgrade', (req, socket, head) => {
console.log('3');
req.url.startsWith('/wisp') ? wisp.routeRequest(req, socket, head) : undefined
})
}
+2 -8
View File
@@ -1,14 +1,8 @@
<script>
declare global {
interface Window {
settings: Settings
}
}
import { Settings } from "@utils/settings.ts";
window.settings = await Settings.getInstance();
const settings = new Settings();
document.addEventListener('astro:after-swap', async () => {
window.settings.theme()
settings.theme();
});
</script>