mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-21 14:47:41 +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
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ export default async function* extractThumbnails(
|
||||||
video.crossOrigin = "anonymous";
|
video.crossOrigin = "anonymous";
|
||||||
|
|
||||||
// Wait for the video metadata to load
|
// 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("loadedmetadata", resolve);
|
||||||
video.addEventListener("error", reject);
|
video.addEventListener("error", reject);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue