Add debug query string support
This commit is contained in:
parent
fe5e840630
commit
1b9c984d13
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue