The next-generation file converter. Open source, fully local* and free forever.
fix: urgent! sooo urgent!!
not-nullptr3d1c3705c3ff
diff --git a/src/lib/store/index.svelte.ts b/src/lib/store/index.svelte.tsindex 61f665d..cc12fa8 100644--- a/src/lib/store/index.svelte.ts+++ b/src/lib/store/index.svelte.ts@@ -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" },+ });};}