aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
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