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 query = useQuery();
|
||||||
const { loading, joined, room, participants, error, joinCall, leaveCall } =
|
const { loading, joined, room, participants, error, joinCall, leaveCall } =
|
||||||
useVideoRoom(manager, roomId);
|
useVideoRoom(manager, roomId);
|
||||||
const [debug, setDebug] = useState(!!query.get("debug"));
|
const debugStr = query.get("debug");
|
||||||
|
const [debug, setDebug] = useState(debugStr === "" || debugStr === "true");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
function onKeyDown(event) {
|
function onKeyDown(event) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue