aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/showNameClick.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/dom/showNameClick.ts')
-rw-r--r--webAO/dom/showNameClick.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/webAO/dom/showNameClick.ts b/webAO/dom/showNameClick.ts
index 005bfd5..375c67b 100644
--- a/webAO/dom/showNameClick.ts
+++ b/webAO/dom/showNameClick.ts
@@ -1,15 +1,13 @@
-import setCookie from "../utils/setCookie";
-
/**
* Triggered when the showname checkboc is clicked
* @param {MouseEvent} event
*/
export function showname_click(_event: Event | null) {
- setCookie(
+ localStorage.setItem(
"showname",
String((<HTMLInputElement>document.getElementById("showname")).checked),
);
- setCookie(
+ localStorage.setItem(
"ic_chat_name",
(<HTMLInputElement>document.getElementById("ic_chat_name")).value,
);