aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-04-18 16:08:21 +0200
committersD <stoned@derpymail.org>2020-04-18 16:08:21 +0200
commit786949e40f004b98b8006ab43f34da9f3bf98f54 (patch)
treece49d5a69ba9fa6f983b170aef0b92439a309fd7 /webAO/client.js
parent7807d85ab18edadba33de36b324353f51cf51036 (diff)
export the function
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 9d35c4d..9392f2c 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -2438,6 +2438,9 @@ export function getIndexFromSelect(select_box, value) {
}
window.getIndexFromSelect = getIndexFromSelect;
+/**
+ * Set the style of the chatbox
+ */
export function setChatbox(style) {
const chatbox_theme = document.getElementById("chatbox_theme");
const selected_theme = document.getElementById("client_chatboxselect").value;
@@ -2452,6 +2455,7 @@ export function setChatbox(style) {
chatbox_theme.href = "styles/chatbox/" + selected_theme + ".css";
}
}
+window.setChatbox = setChatbox;
/**
* Set the font size for the chatbox