From 1b9c984d13ad5f1420370122e6328354e955096d Mon Sep 17 00:00:00 2001 From: Robert Long Date: Thu, 29 Jul 2021 11:24:34 -0700 Subject: [PATCH] Add debug query string support --- src/Room.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Room.jsx b/src/Room.jsx index 668123a..39de83a 100644 --- a/src/Room.jsx +++ b/src/Room.jsx @@ -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) {