aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-07-14 19:25:19 +0200
committersD <stoned@derpymail.org>2020-07-14 19:25:19 +0200
commite5f3a22ba242b0921c58290fed7147a9912dceac (patch)
tree00a978b581a62afaaa199fa9c3887a7aedfe93a0
parentd720de27c51c2a4a2173f1349bad49672f65e9c5 (diff)
save and load the callwords to a cookie
-rw-r--r--webAO/client.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/webAO/client.js b/webAO/client.js
index aad1895..d9acaad 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -427,6 +427,8 @@ class Client extends EventEmitter {
document.getElementById("ic_chat_name").value = getCookie("ic_chat_name");
document.getElementById("showname").checked = getCookie("showname");
+
+ document.getElementById("client_callwords").value = getCookie("callwords");
}
/**
@@ -2224,6 +2226,7 @@ window.reloadTheme = reloadTheme;
*/
export function changeCallwords() {
client.callwords = document.getElementById("client_callwords").value.split('\n');
+ setCookie("callwords",client.callwords);
}
window.changeCallwords = changeCallwords;