aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
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 6f11881..e01dcb9 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -1088,6 +1088,7 @@ class Client extends EventEmitter {
me.side = ini.options.side;
updateActionCommands(me.side);
for (let i = 1; i <= ini.emotions.number; i++) {
+ try {
const emoteinfo = ini.emotions[i].split("#");
const esfx = ini.soundn[i] || "0";
const esfxd = Number(ini.soundt[i] || 0);
@@ -1108,6 +1109,9 @@ class Client extends EventEmitter {
alt="${emotes[i].desc}"
class="emote_button"
onclick="pickEmotion(${i})">`;
+ } catch(e) {
+ console.error("missing emote "+i);
+ }
}
pickEmotion(1);
}