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