Skip to content

Commit

Permalink
final coverage fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
electrovir committed Sep 12, 2024
1 parent 2b6efea commit 4866115
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/web/src/augments/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export async function loadVideo(videoUrl: string): Promise<HTMLVideoElement> {
const deferredPromise = new DeferredPromise<HTMLVideoElement>();
const videoElement = document.createElement('video');
videoElement.addEventListener('loadeddata', () => {
/** This doesn't work in WebKit on Windows. */
/* node:coverage ignore next */
deferredPromise.resolve(videoElement);
});
videoElement.onerror = () => {
Expand Down

0 comments on commit 4866115

Please sign in to comment.