Resolve FIXME

This commit is contained in:
Max Goodhart
2020-11-11 21:47:25 -08:00
parent 18bdae3b16
commit 62ad3a5cbf

View File

@@ -212,9 +212,8 @@ async function findVideo(kind) {
video.play()
if (!video.videoWidth) {
// TODO: figure out why 'playing' event doesn't fire on Twitch when video offscreen
const videoReady = new Promise((resolve) =>
video.addEventListener('play', resolve, { once: true }),
video.addEventListener('playing', resolve, { once: true }),
)
await videoReady
}