This commit is contained in:
not-nullptr 2024-11-15 14:17:43 +00:00
parent 3d1c3705c3
commit adb4bd4fc5
1 changed files with 2 additions and 1 deletions

View File

@ -17,10 +17,11 @@ class Theme {
expires: 2147483647, expires: 2147483647,
}); });
log(["theme"], `set to ${this.dark ? "dark" : "light"}`); log(["theme"], `set to ${this.dark ? "dark" : "light"}`);
if (browser) if (browser) {
window.plausible("Theme set", { window.plausible("Theme set", {
props: { theme: theme.dark ? "dark" : "light" }, props: { theme: theme.dark ? "dark" : "light" },
}); });
}
}; };
} }