mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 17:04:49 +08:00
removed comment
This commit is contained in:
parent
16ebc21ebd
commit
a5e678d291
1 changed files with 0 additions and 26 deletions
|
@ -101,32 +101,6 @@ export async function getDataAndInit() {
|
|||
DB.updateName(user.uid, user.name);
|
||||
} else {
|
||||
//invalid, get new
|
||||
// Notifications.add("Invalid name", 0);
|
||||
// let promptVal = null;
|
||||
// let cdnVal = undefined;
|
||||
|
||||
// while (
|
||||
// promptVal === null ||
|
||||
// cdnVal === undefined ||
|
||||
// cdnVal.data.status < 0
|
||||
// ) {
|
||||
// promptVal = prompt(
|
||||
// "Your name is either invalid or unavailable (you also need to do this if you used Google Sign Up). Please provide a new display name (cannot be longer than 14 characters, can only contain letters, numbers, underscores, dots and dashes):"
|
||||
// );
|
||||
// //TODO update
|
||||
// axiosInstance
|
||||
// .post("/updateName", {
|
||||
// name: promptVal,
|
||||
// })
|
||||
// .then((cdnVal) => {
|
||||
// if (cdnVal.data.status === 1) {
|
||||
// alert("Name updated", 1);
|
||||
// location.reload();
|
||||
// } else if (cdnVal.data.status < 0) {
|
||||
// alert(cdnVal.data.message, 0);
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
let nameGood = false;
|
||||
let name = "";
|
||||
|
||||
|
|
Loading…
Reference in a new issue