diff options
author | Ajay <[email protected]> | 2024-09-26 19:18:30 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2024-09-26 19:18:30 -0400 |
commit | 9d9713ee82bcd7bfae03bbe09b696a93371135ee (patch) | |
tree | 681a366d6546d7dfef69412258a1c807bd3e1657 | |
parent | 91556f981a70ce66932b9a4913f6933a09e0bc1a (diff) | |
download | SponsorBlock-9d9713ee82bcd7bfae03bbe09b696a93371135ee.tar.gz SponsorBlock-9d9713ee82bcd7bfae03bbe09b696a93371135ee.zip |
Attempt to fix issue with autoplay disabled on some browser breaking skipping
Fix #2074 and Fix #2078
-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) |