Skip to content

Commit

Permalink
build: next try
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB committed Aug 26, 2024
1 parent 1531aa6 commit 4aee481
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/elements/core/testing/wait-for-image-ready.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ export async function waitForImageReady(
const timeout = setTimeout(() => reject('image loading timeout'), timeoutInMilliseconds);
element.addEventListener('load', () => {
clearTimeout(timeout);
resolve();
if (isSafari) {
setTimeout(resolve, 100);

Check warning on line 14 in src/elements/core/testing/wait-for-image-ready.ts

View check run for this annotation

Codecov / codecov/patch

src/elements/core/testing/wait-for-image-ready.ts#L14

Added line #L14 was not covered by tests
} else {
resolve();
}
});
element.addEventListener('error', () => {
clearTimeout(timeout);
Expand Down

0 comments on commit 4aee481

Please sign in to comment.