Added auto darkmode
This commit is contained in:
parent
f8b7247346
commit
a89efa0ddb
@ -7,6 +7,7 @@
|
||||
import '../app.postcss';
|
||||
|
||||
import {alerts, globals} from "$lib/stores.js";
|
||||
import { autoModeWatcher } from '@skeletonlabs/skeleton';
|
||||
|
||||
let alertsvar;
|
||||
let globalvars;
|
||||
@ -25,7 +26,7 @@
|
||||
globalvars = value;
|
||||
});
|
||||
</script>
|
||||
|
||||
<svelte:head>{@html `<script>${autoModeWatcher.toString()} autoModeWatcher();</script>`}</svelte:head>
|
||||
{#if typeof globalvars.user !== 'undefined' }
|
||||
{#each alertsvar as alert, i}
|
||||
<aside class="alert variant-filled-{alert.class}">
|
||||
|
Loading…
Reference in New Issue
Block a user