From e105321b58927734fcb3d36a3d592c82c3ff88dd Mon Sep 17 00:00:00 2001 From: Emre Can Minnet Date: Wed, 14 Jun 2023 09:15:29 +0300 Subject: [PATCH] Update src/utils/thumbnailCreator.ts Co-authored-by: thehairy <71461991+thehairy@users.noreply.github.com> --- src/utils/thumbnailCreator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/thumbnailCreator.ts b/src/utils/thumbnailCreator.ts index 7f9a2556..14dddeb0 100644 --- a/src/utils/thumbnailCreator.ts +++ b/src/utils/thumbnailCreator.ts @@ -16,7 +16,7 @@ export default async function* extractThumbnails( video.crossOrigin = "anonymous"; // Wait for the video metadata to load - const metadata = await new Promise((resolve, reject) => { + await new Promise((resolve, reject) => { video.addEventListener("loadedmetadata", resolve); video.addEventListener("error", reject); });