diff options
-rw-r--r-- | src/content.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/content.ts b/src/content.ts index c02db6c6..f919026c 100644 --- a/src/content.ts +++ b/src/content.ts @@ -852,6 +852,7 @@ let lastPlaybackSpeed = 1; let setupVideoListenersFirstTime = true; function setupVideoListeners() { const video = getVideo(); + if (!video) return; // Maybe video became invisible //wait until it is loaded video.addEventListener('loadstart', videoOnReadyListener) |