Made everything now use the proper per video local storage

This commit is contained in:
Ajay Ramachandran
2019-07-09 16:36:06 -04:00
parent 3869049088
commit 7baff32b55
3 changed files with 55 additions and 45 deletions

View File

@@ -44,14 +44,14 @@ function sponsorsLookup(id) {
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
sponsorDataFound = true;
sponsorTimes = JSON.parse(xmlhttp.responseText).sponsorTimes;
// If the sponsor data exists, add the event to run on the videos "ontimeupdate"
v.ontimeupdate = function () {
sponsorCheck(sponsorTimes);
};
} else {
sponsorDataFound = false;
}
};
xmlhttp.send(null);