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 [viaServers, isEmbedded] = useMemo(() => {
|
||||
const params = new URLSearchParams(search);
|
||||
return [params.getAll("via"), params.get("embed") !== null];
|
||||
return [params.getAll("via"), params.has("embed")];
|
||||
}, [search]);
|
||||
const roomId = (maybeRoomId || hash || "").toLowerCase();
|
||||
|
||||
|
|
Loading…
Reference in a new issue