From 564928dfbbe62ed47af39b44b9c060fea3b12064 Mon Sep 17 00:00:00 2001 From: sD Date: Wed, 18 Dec 2019 18:59:53 +0100 Subject: out with demoerror so it shows the alt name instead --- webAO/client.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'webAO/client.js') 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 = ``; + td.innerHTML = ``; tr.appendChild(td); if (i % CHAR_SELECT_WIDTH === 0) { @@ -1542,17 +1542,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 -- cgit