Add debug query string support
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user