mirror of https://github.com/VERT-sh/VERT.git
fix: urgent! sooo urgent!!
This commit is contained in:
parent
02cf3d8d41
commit
3d1c3705c3
|
@ -1,3 +1,4 @@
|
||||||
|
import { browser } from "$app/environment";
|
||||||
import { log } from "$lib/logger";
|
import { log } from "$lib/logger";
|
||||||
import { VertFile } from "$lib/types";
|
import { VertFile } from "$lib/types";
|
||||||
import JSCookie from "js-cookie";
|
import JSCookie from "js-cookie";
|
||||||
|
@ -16,9 +17,10 @@ class Theme {
|
||||||
expires: 2147483647,
|
expires: 2147483647,
|
||||||
});
|
});
|
||||||
log(["theme"], `set to ${this.dark ? "dark" : "light"}`);
|
log(["theme"], `set to ${this.dark ? "dark" : "light"}`);
|
||||||
window.plausible("Theme set", {
|
if (browser)
|
||||||
props: { theme: theme.dark ? "dark" : "light" },
|
window.plausible("Theme set", {
|
||||||
});
|
props: { theme: theme.dark ? "dark" : "light" },
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue