blob: 004b27ee46d57981d6b6e92849e295f384b9ba96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { safeTags } from "../encoding";
/**
* 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_overlay")!.style.display = "flex";
document.getElementById("client_errortext")!.innerHTML =
`${type}:<br>${safeTags(reason).replace(/\n/g, "<br />")}`;
(<HTMLElement>document.getElementById("client_reconnect")).style.display =
"none";
};
|