fix: linux theme sync (#5273)
This commit is contained in:
@@ -53,10 +53,13 @@ export const useCustomTheme = () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
const preferBrowserMatchMedia =
|
||||||
typeof window !== "undefined" &&
|
typeof window !== "undefined" &&
|
||||||
typeof window.matchMedia === "function"
|
typeof window.matchMedia === "function" &&
|
||||||
) {
|
// Skip Tauri flow when running purely in browser.
|
||||||
|
!("__TAURI__" in window);
|
||||||
|
|
||||||
|
if (preferBrowserMatchMedia) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user