Fixed typescript issues.

This commit is contained in:
Ajay Ramachandran
2020-02-08 19:10:04 -05:00
parent 885fae175d
commit 4e1eb82538
3 changed files with 10 additions and 8 deletions

View File

@@ -367,7 +367,7 @@ function sponsorsLookup(id: string, channelIDPromise?) {
UUIDs = JSON.parse(xmlhttp.responseText).UUIDs;
for (let i = 0; i < sponsorTimes.length; i++) {
if (sponsorTimes[i][1] - sponsorTimes[i][0] < SB.config.minDuration) {
if (sponsorTimes[i][1] - sponsorTimes[i][0] < Config.config.minDuration) {
sponsorTimes.splice(i, 1);
UUIDs.splice(i, 1);
}
@@ -1014,7 +1014,7 @@ function submitSponsorTimes() {
sponsorTimesSubmitting = sponsorTimes;
for (let i = 0; i < sponsorTimes.length; i++) {
if (sponsorTimes[i][1] - sponsorTimes[i][0] < SB.config.minDuration) {
if (sponsorTimes[i][1] - sponsorTimes[i][0] < Config.config.minDuration) {
let confirmShort = chrome.i18n.getMessage("shortCheck") + "\n\n" + getSponsorTimesMessage(sponsorTimes);
if(!confirm(confirmShort)) return;
break;