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 8247a6a
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 @@ -10,6 +10,8 @@ import {DeferredPromise} from '@augment-vir/common';
export async function loadVideo(videoUrl: string): Promise<HTMLVideoElement> {
const deferredPromise = new DeferredPromise<HTMLVideoElement>();
const videoElement = document.createElement('video');
/** This doesn't work in WebKit on Windows. */
/* node:coverage ignore next 3 */
videoElement.addEventListener('loadeddata', () => {
deferredPromise.resolve(videoElement);
});
Expand Down

0 comments on commit 8247a6a

Please sign in to comment.