Added warning if you leave a page before submitting your sponsor times.

This commit is contained in:
Ajay Ramachandran
2019-07-09 18:59:27 -04:00
parent fcdb091d66
commit a1f645ea0e
5 changed files with 50 additions and 5 deletions

View File

@@ -2,6 +2,12 @@ if(id = getYouTubeVideoID(document.URL)){ // Direct Links
//reset sponsor data found check
sponsorDataFound = false;
sponsorsLookup(id);
//tell background.js about this
chrome.runtime.sendMessage({
message: "ytvideoid",
videoID: id
});
}
//was sponsor data found when doing SponsorsLookup