allow disconnecting
This commit is contained in:
parent
6b9b67eb3f
commit
62d3942b41
1 changed files with 5 additions and 0 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue