mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 13:37:04 +03:00
Made edit button not work when end time not specified
This commit is contained in:
4
popup.js
4
popup.js
@@ -388,9 +388,13 @@ function getSponsorTimesMessageDiv(sponsorTimes) {
|
|||||||
currentSponsorTimeContainer.innerText = currentSponsorTimeMessage;
|
currentSponsorTimeContainer.innerText = currentSponsorTimeMessage;
|
||||||
sponsorTimesContainer.appendChild(currentSponsorTimeContainer);
|
sponsorTimesContainer.appendChild(currentSponsorTimeContainer);
|
||||||
sponsorTimesContainer.appendChild(deleteButton);
|
sponsorTimesContainer.appendChild(deleteButton);
|
||||||
|
|
||||||
|
//only if it is a complete sponsor time
|
||||||
|
if (sponsorTimes[i].length > 1) {
|
||||||
sponsorTimesContainer.appendChild(spacer);
|
sponsorTimesContainer.appendChild(spacer);
|
||||||
sponsorTimesContainer.appendChild(editButton);
|
sponsorTimesContainer.appendChild(editButton);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return sponsorTimesContainer;
|
return sponsorTimesContainer;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user