mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-27 10:11:48 +01:00
Update src/utils/thumbnailCreator.ts
Co-authored-by: thehairy <71461991+thehairy@users.noreply.github.com>
This commit is contained in:
parent
5d5ab76712
commit
e105321b58
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user