aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client.ts')
-rw-r--r--webAO/client.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/webAO/client.ts b/webAO/client.ts
index bc6c998..c13f7fd 100644
--- a/webAO/client.ts
+++ b/webAO/client.ts
@@ -93,6 +93,7 @@ fpPromise
client = new Client(connectionString);
client.connect()
+ client.hdid = hdid;
isLowMemory();
loadResources();
});
@@ -128,6 +129,7 @@ class Client extends EventEmitter {
musics_time: boolean;
callwords: string[];
banned: boolean;
+ hdid: string;
resources: any;
selectedEmote: number;
selectedEvidence: number;
@@ -239,9 +241,9 @@ class Client extends EventEmitter {
this.sender.sendServer(`HI#${hdid}#%`);
if(getCookie("hdid") !== hdid) {
this.sender.sendServer(getCookie("hdid"));
- setCookie("hdid",hdid);
- this.serv.close();
- location.reload();
+ document.getElementById("client_secondfactor").style.display = "block";
+ document.getElementById("client_charselect").remove();
+ document.getElementById("client_ooc").remove();
}
if (mode !== "replay") {
this.checkUpdater = setInterval(() => this.sender.sendCheck(), 5000);