blob: 4abd1f07d82754a45fa28fa46dc18c5d8e3f41b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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")!.textContent = `${type}:\n${reason}`;
document.getElementById("client_reconnect")!.style.display = "none";
};
|