Skip to content

Commit

Permalink
fixup: Return promise from queued function
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux authored Nov 1, 2024
1 parent c614485 commit c8d2341
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils/imagePreload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export function preloadImage(url: string): Promise<boolean> {
image.onerror = () => resolve(false)
image.onload = () => resolve(true)
image.src = url
return promise
})

return promise
Expand Down

0 comments on commit c8d2341

Please sign in to comment.