aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-04-11 21:51:06 +0200
committersD <stoned@derpymail.org>2020-04-11 21:51:06 +0200
commit9b4e487245f7fb6862dc3bba84f9425b18894cec (patch)
tree0618dc1e98a6b211aa3d902765aa4ca36e0b3a2a /webAO
parent13df07b8d246c18de314e6b7f61c646214098746 (diff)
Revert "save showname to a cookie"
This reverts commit 07cbf4bda7f53ac67119f508c7ebf4e2d572728b.
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.html2
-rw-r--r--webAO/client.js9
2 files changed, 1 insertions, 10 deletions
diff --git a/webAO/client.html b/webAO/client.html
index 8f675ac..197d77e 100644
--- a/webAO/client.html
+++ b/webAO/client.html
@@ -161,7 +161,7 @@
<br>
<span id="cccc" style="display: none">
<label for="ic_chat_name">Custom Showname:</label>
- <input id="ic_chat_name" name="ic_chat_name" type="text" onchange="onShownameChange()">
+ <input id="ic_chat_name" name="ic_chat_name" type="text">
<label for="showname">Show others:</label>
<input id="showname" name="showname" type="checkbox" onclick="showname_click()">
</span>
diff --git a/webAO/client.js b/webAO/client.js
index 90561cc..b106b03 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -1916,15 +1916,6 @@ function setCookie(cname, value) {
}
/**
- * Triggered when the showname is changed
- * @param {KeyboardEvent} event
- */
-export function onShownameChange(event) {
- setCookie("showname",document.getElementById("client_oocinputbox").value);
-}
-window.onShownameChange = onShownameChange;
-
-/**
* Triggered when the Return key is pressed on the out-of-character chat input box.
* @param {KeyboardEvent} event
*/