allow disabling mute segments locally

This commit is contained in:
Michael C 2022-07-29 00:37:02 -04:00
parent 81b01ac5cc
commit 6eb1d5d954
No known key found for this signature in database
GPG key ID: FFB04FB3B878B7B4

View file

@ -576,7 +576,7 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
voteButtonsContainer.appendChild(upvoteButton);
voteButtonsContainer.appendChild(downvoteButton);
voteButtonsContainer.appendChild(uuidButton);
if (segmentTimes[i].actionType === ActionType.Skip
if ((segmentTimes[i].actionType === ActionType.Skip || segmentTimes[i].actionType === ActionType.Mute)
&& [SponsorHideType.Visible, SponsorHideType.Hidden].includes(segmentTimes[i].hidden)) {
voteButtonsContainer.appendChild(hideButton);
}