aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2019-12-18 20:45:50 +0100
committersD <stoned@derpymail.org>2019-12-18 20:45:50 +0100
commita87c23afc6cced094922b2087233da6c202ae3f5 (patch)
treefc447b5f7aeead2bf33d79c73e9b864bfe16efaf /webAO/client.js
parentfa8de7b9e26100d2d9baed236a10d29e9355e52f (diff)
remove double charicon url
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 15f51e3..d8ad42b 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -573,7 +573,7 @@ class Client extends EventEmitter {
};
// need to take care of src alt onclick and onerror when the char comes in
let img = document.getElementById(`demo_${charid}`);
- img.src = AO_HOST + "characters/" + escape(chargs[0].toLowerCase()) + "/char_icon.png";
+ img.src = this.chars[charid].icon;
img.alt = chargs[0];
}