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