mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-01-25 22:11:20 +01:00
crafthead and fix pow
This commit is contained in:
parent
914b34681e
commit
4aec1e0458
@ -58,7 +58,8 @@ function addMcAccountToList(id, name, msUser = null) {
|
|||||||
};
|
};
|
||||||
head.className = "account_head";
|
head.className = "account_head";
|
||||||
head.alt = name + "'s head";
|
head.alt = name + "'s head";
|
||||||
head.src = (id.length == 36 || id.length == 32) ? "https://crafatar.com/avatars/" + id + "?overlay" : "https://crafthead.net/helm/" + id;
|
head.src = "https://crafthead.net/helm/" + id;
|
||||||
|
//(id.length == 36 || id.length == 32) ? "https://crafatar.com/avatars/" + id + "?overlay" : "https://crafthead.net/helm/" + id;
|
||||||
p.append(head);
|
p.append(head);
|
||||||
p.append(n);
|
p.append(n);
|
||||||
p.append(remove);
|
p.append(remove);
|
||||||
@ -103,7 +104,8 @@ function renderActions() {
|
|||||||
addAction("Listen to offline login in VIAaaS instance", () => {
|
addAction("Listen to 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;
|
||||||
workers.forEach(it => it.postMessage({action: "listen_pow", user: user, id: Math.random()}));
|
let taskId = Math.random();
|
||||||
|
workers.forEach(it => it.postMessage({action: "listen_pow", user: user, id: taskId}));
|
||||||
addToast("Offline username", "Please wait a minute...");
|
addToast("Offline username", "Please wait a minute...");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user