From c8d2341cdf99e1b333099a4e487cf586202e0eca Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 1 Nov 2024 18:17:24 +0100 Subject: [PATCH] fixup: Return promise from queued function Signed-off-by: Ferdinand Thiessen --- lib/utils/imagePreload.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/utils/imagePreload.ts b/lib/utils/imagePreload.ts index 40cefadf..61053fb1 100644 --- a/lib/utils/imagePreload.ts +++ b/lib/utils/imagePreload.ts @@ -18,6 +18,7 @@ export function preloadImage(url: string): Promise { image.onerror = () => resolve(false) image.onload = () => resolve(true) image.src = url + return promise }) return promise