Skip to content
Snippets Groups Projects
Commit e709627e authored by Brian Peiris's avatar Brian Peiris
Browse files

optionally take username from query parameter

parent 417200b4
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment