Skip to content
Snippets Groups Projects
Commit c1239854 authored by Kevin Lee's avatar Kevin Lee
Browse files

disable getting name from auth token for now

parent 555ea776
No related branches found
No related tags found
No related merge requests found
...@@ -77,17 +77,17 @@ window.App = { ...@@ -77,17 +77,17 @@ window.App = {
} }
let username; let username;
const jwt = getCookie("jwt"); // const jwt = getCookie("jwt");
if (jwt) { // if (jwt) {
const data = parseJwt(jwt); // const data = parseJwt(jwt);
username = data.typ.name; // username = data.typ.name;
alert("Your username is: " + username); // alert("Your username is: " + username);
} else { // } else {
username = qs.name; username = qs.name;
if (!username) { if (!username) {
username = promptForName(username); // promptForName is blocking username = promptForName(username); // promptForName is blocking
} }
} // }
const myNametag = document.querySelector("#player-rig .nametag"); const myNametag = document.querySelector("#player-rig .nametag");
myNametag.setAttribute("text", "value", username); 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