update frontend
This commit is contained in:
parent
13646408eb
commit
b5db6e0ca8
|
|
@ -52,18 +52,9 @@ function parseMergedParams() {
|
|||
return b != null ? b : null;
|
||||
};
|
||||
|
||||
const hasAny = (...keys) => any(keys, qs, hs)
|
||||
|
||||
return { qs, hs, get, hash };
|
||||
}
|
||||
|
||||
function any(keys, qs, hs){
|
||||
for (const k of keys){
|
||||
if (qs.has(k) || hs.has(k)) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export default function TopBar({ theme = "dark", onChangeTheme }) {
|
||||
const {
|
||||
loading,
|
||||
|
|
@ -109,6 +100,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) {
|
|||
if (authenticated) setShowAuth(false);
|
||||
}, [authenticated]);
|
||||
|
||||
/* SW_URL_NOTICE:BEGIN */
|
||||
useEffect(() => {
|
||||
try {
|
||||
const { get, qs, hs, hash } = parseMergedParams();
|
||||
|
|
|
|||
Loading…
Reference in New Issue