case sensitivity in minecraft.id

This commit is contained in:
creeper123123321 2020-11-06 21:36:53 -03:00
parent dacd630d73
commit 5416077d28

View File

@ -258,7 +258,7 @@
link.innerText = "Listen to username in VIAaaS instance";
link.href = "javascript:";
link.onclick = () => {
let user = prompt("Username: ", "");
let user = prompt("Username (Minecraft.ID is case-sensitive): ", "");
let callbackUrl = new URL(location.origin + location.pathname + "?username=" + encodeURIComponent(user));
location = "https://api.minecraft.id/gateway/start/" + encodeURIComponent(user) + "?callback=" + encodeURIComponent(callbackUrl);
};