From 2a7001ea3a225bbfa79c51b289928f416d9f3814 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Wed, 13 Jan 2021 00:22:42 +0100 Subject: [PATCH] fix --- src/ext/lib/video-data/VideoData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ext/lib/video-data/VideoData.js b/src/ext/lib/video-data/VideoData.js index 1428295..b6797cf 100644 --- a/src/ext/lib/video-data/VideoData.js +++ b/src/ext/lib/video-data/VideoData.js @@ -33,7 +33,7 @@ class VideoData { async onVideoLoaded() { if (!this.videoLoaded) { - if (this.video.videoWidth && this.video.videoHeight) { + if (!this.video.videoWidth || !this.video.videoHeight) { return; // onVideoLoaded is a lie in this case } this.logger.log('info', 'init', '%c[VideoData::onVideoLoaded] ——————————— Initiating phase two of videoData setup ———————————', 'color: #0f9');