allow disconnecting

This commit is contained in:
Holly Stubbs 2024-04-19 10:32:26 +01:00
parent 6b9b67eb3f
commit 62d3942b41
Signed by: tgpholly
GPG Key ID: B8583C4B7D18119E
1 changed files with 5 additions and 0 deletions

View File

@ -349,6 +349,11 @@ if (!window.TE_ACTIVE) {
if (localStorage["t00mp_username"] !== "") {
const disconnectButton = document.createElement("button");
disconnectButton.innerText = "Disconnect";
disconnectButton.onclick = () => {
localStorage["t00mp_username"] = "";
bg.remove();
window.location.href = window.location.href;
}
}
const doNotButton = document.createElement("button");
doNotButton.innerText = "Close";