mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 22:47:18 +03:00
fix: ignore switchingVideos in Safari (see #1142)
This commit is contained in:
@@ -879,7 +879,8 @@ function retryFetch(): void {
|
|||||||
* Ex. When segments are first loaded
|
* Ex. When segments are first loaded
|
||||||
*/
|
*/
|
||||||
function startSkipScheduleCheckingForStartSponsors() {
|
function startSkipScheduleCheckingForStartSponsors() {
|
||||||
if (!switchingVideos && sponsorTimes) {
|
// switchingVideos is ignored in Safari due to event fire order. See #1142
|
||||||
|
if ((!switchingVideos || isSafari) && sponsorTimes) {
|
||||||
// See if there are any starting sponsors
|
// See if there are any starting sponsors
|
||||||
let startingSegmentTime = getStartTimeFromUrl(document.URL) || -1;
|
let startingSegmentTime = getStartTimeFromUrl(document.URL) || -1;
|
||||||
let found = false;
|
let found = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user