aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2019-12-18 18:59:53 +0100
committersD <stoned@derpymail.org>2019-12-18 18:59:53 +0100
commit564928dfbbe62ed47af39b44b9c060fea3b12064 (patch)
tree2bf65acf1ae6b7ac3c0163189b576385ef8ed23e /webAO/client.js
parent2d4ddecde9c4ee46f5e04e6d3b9c6bd9016b4471 (diff)
out with demoerror so it shows the alt name instead
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/webAO/client.js b/webAO/client.js
index eba1483..d02527d 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -869,7 +869,7 @@ class Client extends EventEmitter {
}
const td = document.createElement("TD");
- td.innerHTML = `<img class='demothing' id='demo_${i}' onclick='pickChar(${i})' onerror='demoError(this)'>`;
+ td.innerHTML = `<img class='demothing' id='demo_${i}' onclick='pickChar(${i})' >`;
tr.appendChild(td);
if (i % CHAR_SELECT_WIDTH === 0) {
@@ -1543,17 +1543,6 @@ export function imgError(image) {
window.imgError = imgError;
/**
- * Triggered when there was an error loading a character icon.
- * @param {HTMLImageElement} image the element containing the missing image
- */
-export function demoError(image) {
- image.onerror = "";
- image.src = "misc/placeholder.png";
- return true;
-}
-window.demoError = demoError;
-
-/**
* Make a GET request for a specific URI.
* @param {string} url the URI to be requested
* @returns response data