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
+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>