mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Fix popup sometimes saying "No video found"
Fixes #2006 Fixes #2013 Fixes #1999
This commit is contained in:
parent
5b845a56e1
commit
3be51c89a9
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue