aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/imgError.ts
diff options
context:
space:
mode:
authorstonedDiscord <stonedDiscord@users.noreply.github.com>2024-11-20 13:31:50 +0000
committerGitHub Action <actions@github.com>2024-11-20 13:31:50 +0000
commit6684f3fce6e90fd0574d7bab63b629554ab03ef6 (patch)
treeb2a62247d17e23a77af57aea355ba621666817c2 /webAO/dom/imgError.ts
parent95a2d1361d84c61b454ebe506e6963b93f6d8dee (diff)
Prettified Code!
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;