Skip to content

Commit

Permalink
Fixed delete button potentially appearing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Jan 11, 2020
1 parent aee0712 commit 04942a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content.js
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ async function changeStartSponsorButton(showStartSponsor, uploadButtonVisible) {
await wait(isSubmitButtonLoaded);

//if it isn't visible, there is no data
let shouldHide = (uploadButtonVisible && !SB.config.hideDeleteButtonPlayerControls) ? "unset" : "none"
let shouldHide = (uploadButtonVisible && !(SB.config.hideDeleteButtonPlayerControls || onInvidious)) ? "unset" : "none"
document.getElementById("deleteButton").style.display = shouldHide;

if (showStartSponsor) {
Expand Down

0 comments on commit 04942a3

Please sign in to comment.