mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-01-09 19:48:37 +01:00
"listen to frontend"
This commit is contained in:
parent
2b6d2b02e7
commit
f907cbe1bf
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user