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

View file

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