Skip to content

Commit

Permalink
Fix popup sometimes saying "No video found"
Browse files Browse the repository at this point in the history
Fixes #2006
Fixes #2013
Fixes #1999
  • Loading branch information
ajayyy committed May 1, 2024
1 parent 5b845a5 commit 3be51c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
});

Expand Down Expand Up @@ -1183,7 +1183,7 @@ async function sponsorsLookup(keepOldSubmissions = true) {
found: sponsorDataFound,
status: lastResponseStatus,
sponsorTimes: sponsorTimes,
time: getVideo().currentTime,
time: getVideo()?.currentTime ?? 0,
onMobileYouTube: isOnMobileYouTube()
});

Expand Down

0 comments on commit 3be51c8

Please sign in to comment.