mirror of https://github.com/VERT-sh/VERT.git
???????
This commit is contained in:
parent
adb4bd4fc5
commit
69a4d928d0
|
@ -90,16 +90,6 @@
|
||||||
navbar?.addEventListener("mouseenter", mouseEnter);
|
navbar?.addEventListener("mouseenter", mouseEnter);
|
||||||
navbar?.addEventListener("mouseleave", mouseLeave);
|
navbar?.addEventListener("mouseleave", mouseLeave);
|
||||||
});
|
});
|
||||||
|
|
||||||
onMount(() => {
|
|
||||||
window.plausible =
|
|
||||||
window.plausible ||
|
|
||||||
((_, opts) => {
|
|
||||||
opts?.callback?.({
|
|
||||||
status: 200,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
|
|
|
@ -4,6 +4,13 @@ import JSCookie from "js-cookie";
|
||||||
|
|
||||||
export const load = ({ data }) => {
|
export const load = ({ data }) => {
|
||||||
if (!browser) return;
|
if (!browser) return;
|
||||||
|
window.plausible =
|
||||||
|
window.plausible ||
|
||||||
|
((_, opts) => {
|
||||||
|
opts?.callback?.({
|
||||||
|
status: 200,
|
||||||
|
});
|
||||||
|
});
|
||||||
const themeStr = JSCookie.get("theme");
|
const themeStr = JSCookie.get("theme");
|
||||||
if (typeof themeStr === "undefined") {
|
if (typeof themeStr === "undefined") {
|
||||||
theme.dark = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
theme.dark = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
||||||
|
|
Loading…
Reference in New Issue