aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/imgError.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/dom/imgError.ts')
-rw-r--r--webAO/dom/imgError.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/webAO/dom/imgError.ts b/webAO/dom/imgError.ts
index fdb6122..dfc6c92 100644
--- a/webAO/dom/imgError.ts
+++ b/webAO/dom/imgError.ts
@@ -3,8 +3,8 @@
* @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;
+ image.onerror = null;
+ image.src = ""; // unload so the old sprite doesn't persist
+ return true;
}
-window.imgError = imgError; \ No newline at end of file
+window.imgError = imgError;