mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 22:47:18 +03:00
Fix popup sometimes saying "No video found"
Fixes #2006 Fixes #2013 Fixes #1999
This commit is contained in:
@@ -219,7 +219,7 @@ function messageListener(request: Message, sender: unknown, sendResponse: (respo
|
||||
found: sponsorDataFound,
|
||||
status: lastResponseStatus,
|
||||
sponsorTimes: sponsorTimes,
|
||||
time: getVideo().currentTime,
|
||||
time: getVideo()?.currentTime ?? 0,
|
||||
onMobileYouTube: isOnMobileYouTube()
|
||||
});
|
||||
|
||||
@@ -1183,7 +1183,7 @@ async function sponsorsLookup(keepOldSubmissions = true) {
|
||||
found: sponsorDataFound,
|
||||
status: lastResponseStatus,
|
||||
sponsorTimes: sponsorTimes,
|
||||
time: getVideo().currentTime,
|
||||
time: getVideo()?.currentTime ?? 0,
|
||||
onMobileYouTube: isOnMobileYouTube()
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user