mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-13 15:07:02 +03:00
Attempt to fix issue with autoplay disabled on some browser breaking skipping
Fix #2074 and Fix #2078
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user