aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client.ts')
-rw-r--r--webAO/client.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/webAO/client.ts b/webAO/client.ts
index 0501325..ab39ee9 100644
--- a/webAO/client.ts
+++ b/webAO/client.ts
@@ -21,8 +21,6 @@ import {
fetchEvidenceList,
fetchCharacterList,
} from "./client/fetchLists";
-import getCookie from "./utils/getCookie";
-import setCookie from "./utils/setCookie";
const { ip: serverIP, connect, mode, theme, serverName, char: autoChar, area: autoArea } = queryParser();
export { autoChar, autoArea };
@@ -260,8 +258,8 @@ class Client extends EventEmitter {
*/
joinServer() {
this.sender.sendServer(`HI#${hdid}#%`);
- if (this.enableCaptcha && getCookie("hdid") !== hdid) {
- this.sender.sendServer(getCookie("hdid"));
+ if (this.enableCaptcha && localStorage.getItem("hdid") !== hdid) {
+ this.sender.sendServer(localStorage.getItem("hdid"));
document.getElementById("client_secondfactor").style.display = "block";
document.getElementById("client_charselect").remove();
document.getElementById("client_ooc").remove();