Compare commits

...

2 Commits

Author SHA1 Message Date
Renovate Bot
2eab5bbc91 fix(deps): update rust crate bincode to v3 2025-12-20 00:06:06 +00:00
d2a2f0ceea make theme instantly sync accross windows 2025-12-20 00:16:55 +01:00
2 changed files with 7 additions and 1 deletions

View File

@ -13,7 +13,7 @@ bytes = "1"
rocket_prost_responder_derive = { path = "rocket_prost_responder_derive" }
uuid = { version = "1.19.0", features = ["v4"] }
bcrypt = "0.17.1"
bincode = "2.0.1"
bincode = "3.0.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
reqwest = { version = "0.12.24", features = ["json"] }

View File

@ -30,10 +30,16 @@ 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");