aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-04-11 21:50:22 +0200
committersD <stoned@derpymail.org>2020-04-11 21:50:22 +0200
commit8c7a70d5b38a922bd9a18e7ea922c3e4e5fc6c57 (patch)
tree376cfba3cc5e1c10e67391c6c0944a943d8a807e /webAO/client.js
parent07cbf4bda7f53ac67119f508c7ebf4e2d572728b (diff)
set the showname from the cookie
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 90561cc..1385c08 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -387,6 +387,7 @@ class Client extends EventEmitter {
// Read cookies and set the UI to its values
document.getElementById("OOC_name").value = getCookie("OOC_name") || "web"+parseInt(Math.random()*100+10);
+ document.getElementById("ic_chat_name").value = getCookie("showname") || "";
// Read cookies and set the UI to its values
var cookietheme = getCookie("theme") || "default";
@@ -1920,7 +1921,7 @@ function setCookie(cname, value) {
* @param {KeyboardEvent} event
*/
export function onShownameChange(event) {
- setCookie("showname",document.getElementById("client_oocinputbox").value);
+ setCookie("showname",document.getElementById("ic_chat_name").value);
}
window.onShownameChange = onShownameChange;