Use has on set
Co-authored-by: Robin <robin@robin.town>
This commit is contained in:
parent
761eee2cdc
commit
5ebdf3e878
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ export function RoomPage() {
|
||||||
const { hash, search } = useLocation();
|
const { hash, search } = useLocation();
|
||||||
const [viaServers, isEmbedded] = useMemo(() => {
|
const [viaServers, isEmbedded] = useMemo(() => {
|
||||||
const params = new URLSearchParams(search);
|
const params = new URLSearchParams(search);
|
||||||
return [params.getAll("via"), params.get("embed") !== null];
|
return [params.getAll("via"), params.has("embed")];
|
||||||
}, [search]);
|
}, [search]);
|
||||||
const roomId = (maybeRoomId || hash || "").toLowerCase();
|
const roomId = (maybeRoomId || hash || "").toLowerCase();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue