Update ContentScript.js

This commit is contained in:
Official Noob 2019-01-15 21:52:18 +00:00 committed by GitHub
parent 5799147da7
commit 9546fd42b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,14 +13,14 @@ function SponsorsLookup(id) {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
Sponsors = JSON.parse(xmlhttp.responseText);
v.ontimeupdate = function () {
SponsorCheck()
SponsorCheck(Sponsors);
};
}
};
xmlhttp.send(null);
}
function SponsorCheck() {
function SponsorCheck(Sponsors) {
Sponsors.forEach(function (el, index) {
if ((Math.floor(v.currentTime)) == el[0]) {
v.currentTime = el[1];