diff --git a/src/index.js b/src/index.js index 195e091454925f590d45d44de3c78a4859cecfb2..63b8c25614bc5751e653d836d6dee49979804d61 100644 --- a/src/index.js +++ b/src/index.js @@ -35,7 +35,10 @@ window.onSceneLoad = function() { scene.setAttribute('stats', true); } - const username = promptForName(); // promptForName is blocking + let username = qs.name; + if (!username) { + username = promptForName(username); // promptForName is blocking + } const myNametag = document.querySelector("#player-rig .nametag"); myNametag.setAttribute("text", "value", username);