Merge pull request #1524 from caneleex/patch/full-type-skip

don't append skip button for full video labels
This commit is contained in:
Ajay Ramachandran
2022-10-11 00:07:38 -04:00
committed by GitHub

View File

@@ -708,8 +708,9 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
&& [SponsorHideType.Visible, SponsorHideType.Hidden].includes(downloadedTimes[i].hidden)) { && [SponsorHideType.Visible, SponsorHideType.Hidden].includes(downloadedTimes[i].hidden)) {
voteButtonsContainer.appendChild(hideButton); voteButtonsContainer.appendChild(hideButton);
} }
voteButtonsContainer.appendChild(skipButton); if (downloadedTimes[i].actionType !== ActionType.Full) {
voteButtonsContainer.appendChild(skipButton);
}
// Will contain request status // Will contain request status
const voteStatusContainer = document.createElement("div"); const voteStatusContainer = document.createElement("div");