mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
Add debug query string support
This commit is contained in:
parent
fe5e840630
commit
1b9c984d13
@ -30,7 +30,8 @@ export function Room({ manager }) {
|
||||
const query = useQuery();
|
||||
const { loading, joined, room, participants, error, joinCall, leaveCall } =
|
||||
useVideoRoom(manager, roomId);
|
||||
const [debug, setDebug] = useState(!!query.get("debug"));
|
||||
const debugStr = query.get("debug");
|
||||
const [debug, setDebug] = useState(debugStr === "" || debugStr === "true");
|
||||
|
||||
useEffect(() => {
|
||||
function onKeyDown(event) {
|
||||
|
Loading…
Reference in New Issue
Block a user