Made it display the downloaded sponsor times in the popup as well.

This commit is contained in:
Ajay Ramachandran
2019-07-09 18:03:56 -04:00
parent 52f95a0a84
commit 63ecc88392
3 changed files with 33 additions and 9 deletions

View File

@@ -7,6 +7,9 @@ if(id = getYouTubeVideoID(document.URL)){ // Direct Links
//was sponsor data found when doing SponsorsLookup
var sponsorDataFound = false;
//the actual sponsorTimes if loaded
var sponsorTimes = undefined;
//the video
var v;
@@ -28,8 +31,10 @@ chrome.runtime.onMessage.addListener( // Detect URL Changes
}
if (request.message === 'isInfoFound') {
//send the sponsor times along with if it's found
sendResponse({
found: sponsorDataFound
found: sponsorDataFound,
sponsorTimes: sponsorTimes
})
}