aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-07-12 19:36:12 +0200
committersD <stoned@derpymail.org>2020-07-12 19:36:12 +0200
commitba09cd78b07edb9c521d15213d74214519301d1f (patch)
tree1f42e3d7f9cb172f0d4549ddf6646cfe6f38bc11 /webAO/client.js
parentb2c17c1e31aaca37340186ad972b5e17de6c0031 (diff)
use the paired emote for real!!!
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js
index f6b4be3..938c566 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -1669,8 +1669,8 @@ async changeBackground(position) {
if (this.chatmsg.other_name) {
try {
const { url: pairUrl } = await this.oneSuccess([
- this.rejectOnError(fetch(AO_HOST + "characters/" + encodeURI(this.chatmsg.other_name.toLowerCase()) + "/" + this.chatmsg.sprite + ".png")),
- this.rejectOnError(fetch(AO_HOST + "characters/" + encodeURI(this.chatmsg.other_name.toLowerCase()) + "/(a)" + this.chatmsg.sprite + ".gif"))
+ this.rejectOnError(fetch(AO_HOST + "characters/" + encodeURI(this.chatmsg.other_name.toLowerCase()) + "/" + this.chatmsg.other_emote + ".png")),
+ this.rejectOnError(fetch(AO_HOST + "characters/" + encodeURI(this.chatmsg.other_name.toLowerCase()) + "/(a)" + this.chatmsg.other_emote + ".gif"))
]);
this.pairSilent = pairUrl ? pairUrl : transparentPNG;
} catch (error) {