diff --git a/src/index.js b/src/index.js index 0c43229b2204e8958341bf67542ec51a4d5c2695..195e091454925f590d45d44de3c78a4859cecfb2 100644 --- a/src/index.js +++ b/src/index.js @@ -31,6 +31,10 @@ window.onSceneLoad = function() { scene.setAttribute("networked-scene", "room", parseInt(qs.room)); } + if (!qs.stats || !/off|false|0/.test(qs.stats)) { + scene.setAttribute('stats', true); + } + const username = promptForName(); // promptForName is blocking const myNametag = document.querySelector("#player-rig .nametag"); myNametag.setAttribute("text", "value", username);