"listen to frontend"

This commit is contained in:
creeper123123321 2021-06-13 09:04:28 -03:00 committed by GitHub
parent 2b6d2b02e7
commit f907cbe1bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,7 @@ function renderActions() {
renderActions(); renderActions();
}); });
} }
addAction("Listen to premium login in VIAaaS instance", () => { addAction("Listen to frontend premium login in VIAaaS instance", () => {
let user = prompt("Premium username (case-sensitive): ", ""); let user = prompt("Premium username (case-sensitive): ", "");
if (!user) return; if (!user) return;
let callbackUrl = new URL(location); let callbackUrl = new URL(location);
@ -107,7 +107,7 @@ function renderActions() {
location = "https://api.minecraft.id/gateway/start/" + encodeURIComponent(user) location = "https://api.minecraft.id/gateway/start/" + encodeURIComponent(user)
+ "?callback=" + encodeURIComponent(callbackUrl); + "?callback=" + encodeURIComponent(callbackUrl);
}); });
addAction("Listen to offline login in VIAaaS instance", () => { addAction("Listen to frontend offline login in VIAaaS instance", () => {
let user = prompt("Offline username (case-sensitive):", ""); let user = prompt("Offline username (case-sensitive):", "");
if (!user) return; if (!user) return;
let taskId = Math.random(); let taskId = Math.random();