diff --git a/src/hub.js b/src/hub.js index 4a19c796d2377f797eda59a30bb6fdd8fb7b5dca..97470e1db7add15cec671b179c3e4f3568c087a6 100644 --- a/src/hub.js +++ b/src/hub.js @@ -246,10 +246,13 @@ const onReady = async () => { scene.setAttribute("networked-scene", { room: hubId, - serverURL: process.env.JANUS_SERVER, - debug: isDebug + serverURL: process.env.JANUS_SERVER }); + if (isDebug) { + scene.setAttribute("networked-scene", { debug: true }); + } + scene.setAttribute("stats-plus", false); if (isMobile || qsTruthy("mobile")) {