blob: fdb61228fadc2a95ad24696621b610eafc8c1ace (
plain)
1
2
3
4
5
6
7
8
9
10
|
/**
* Triggered when there was an error loading a generic sprite.
* @param {HTMLImageElement} image the element containing the missing image
*/
export function imgError(image: HTMLImageElement) {
image.onerror = null;
image.src = ""; // unload so the old sprite doesn't persist
return true;
}
window.imgError = imgError;
|