blob: 298b27f60c4db40d7b592d529c7ce5fe2a68fb1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/**
* Handles the kicked packet
* @param {string} type is it a kick or a ban
* @param {string} reason why
*/
export const handleBans = (type: string, reason: string) => {
document.getElementById("client_error")!.style.display = "flex";
document.getElementById(
"client_errortext"
)!.innerHTML = `${type}:<br>${reason.replace(/\n/g, "<br />")}`;
(<HTMLElement>(
document.getElementById("client_reconnect")
)).style.display = "none";
alert(type+":\r"+reason)
}
|