mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
More updates to realtime.
This commit is contained in:
parent
28921a7cd5
commit
93b77672f3
28 changed files with 218 additions and 263 deletions
|
|
@ -51,7 +51,7 @@ export default function useLocale() {
|
|||
}, [locale]);
|
||||
|
||||
useEffect(() => {
|
||||
const url = new URL(window.location.href);
|
||||
const url = new URL(window?.location?.href);
|
||||
const locale = url.searchParams.get('locale');
|
||||
|
||||
if (locale) {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ export default function useTheme() {
|
|||
}, [theme]);
|
||||
|
||||
useEffect(() => {
|
||||
const url = new URL(window.location.href);
|
||||
const url = new URL(window?.location?.href);
|
||||
const theme = url.searchParams.get('theme');
|
||||
|
||||
if (['light', 'dark'].includes(theme)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue