Compare commits

..

1 Commits

Author SHA1 Message Date
Renovate Bot
11e0d1f418 fix(deps): update rust crate bincode to v3 2025-12-19 20:06:25 +00:00

View File

@ -30,16 +30,10 @@ function App() {
const setTheme = (theme: string) => {
_setTheme(theme);
localStorage.setItem("theme", theme);
bc.postMessage(theme);
};
const [toasts, setToasts] = useState<ToastMessage[]>([]);
const [isLoading, setIsLoading] = useState(false);
const bc = new BroadcastChannel("theme-channel");
bc.onmessage = (ev) => {
_setTheme(ev.data as string);
};
useEffect(() => {
if (theme !== "default" && theme !== "sakura") {
document.body.classList.remove("sakura-theme");