Add debug query string support

This commit is contained in:
Robert Long 2021-07-29 11:24:34 -07:00
parent fe5e840630
commit 1b9c984d13

View file

@ -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) {