From 8339a1fd7924f6454dea7b262ca5faf96bbd1c01 Mon Sep 17 00:00:00 2001 From: Jeremias Peier Date: Mon, 26 Aug 2024 10:56:01 +0200 Subject: [PATCH] build: try the hard way --- src/elements/core/testing/wait-for-image-ready.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/elements/core/testing/wait-for-image-ready.ts b/src/elements/core/testing/wait-for-image-ready.ts index 454cfd3eec..10662a44b9 100644 --- a/src/elements/core/testing/wait-for-image-ready.ts +++ b/src/elements/core/testing/wait-for-image-ready.ts @@ -11,7 +11,7 @@ export async function waitForImageReady( element.addEventListener('load', () => { clearTimeout(timeout); if (isSafari) { - setTimeout(resolve, 100); + setTimeout(resolve, 1000); } else { resolve(); } @@ -22,6 +22,6 @@ export async function waitForImageReady( }); }); } else if (isSafari) { - await new Promise((resolve) => setTimeout(resolve, 100)); + await new Promise((resolve) => setTimeout(resolve, 1000)); } }