Made it start with the "Sponsorship Ends Now" button when necessary

This commit is contained in:
Ajay Ramachandran
2019-07-09 22:26:15 -04:00
parent 26ea70da61
commit 98115a20d3

View File

@@ -49,6 +49,7 @@ function loadTabData(tabs) {
if (sponsorTimesStorage != undefined && sponsorTimesStorage.length > 0) { if (sponsorTimesStorage != undefined && sponsorTimesStorage.length > 0) {
if (sponsorTimesStorage[sponsorTimesStorage.length - 1] != undefined && sponsorTimesStorage[sponsorTimesStorage.length - 1].length < 2) { if (sponsorTimesStorage[sponsorTimesStorage.length - 1] != undefined && sponsorTimesStorage[sponsorTimesStorage.length - 1].length < 2) {
startTimeChosen = true; startTimeChosen = true;
document.getElementById("sponsorStart").innerHTML = "Sponsorship Ends Now";
} }
sponsorTimes = sponsorTimesStorage; sponsorTimes = sponsorTimesStorage;