diff options
author | Official Noob <[email protected]> | 2019-01-15 21:52:18 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-01-15 21:52:18 +0000 |
commit | 9546fd42b1b740bcd38009fd25de0bd8a3bbd172 (patch) | |
tree | 2ac1d51321c7d5b356be574a356b986916766013 | |
parent | 5799147da7a27445fd747cdd90673d57e3cff072 (diff) | |
download | SponsorBlock-9546fd42b1b740bcd38009fd25de0bd8a3bbd172.tar.gz SponsorBlock-9546fd42b1b740bcd38009fd25de0bd8a3bbd172.zip |
Update ContentScript.js
-rw-r--r-- | ContentScript.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ContentScript.js b/ContentScript.js index 2e05e454..4c37d633 100644 --- a/ContentScript.js +++ b/ContentScript.js @@ -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]; |