From 5b628ccbf94d2c9ca6074ae1a8790e925e9adb1d Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 19 Dec 2019 00:56:52 -0500 Subject: [PATCH] Fixed submit button being shown at the wrong time. --- content.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/content.js b/content.js index 0ddea4a9..cbd1f788 100644 --- a/content.js +++ b/content.js @@ -757,9 +757,6 @@ function getControls() { //adds all the player controls buttons async function createButtons() { - // Don't add controls on Invidious yet - if (onInvidious) return; - let result = await wait(getControls).catch(); //set global controls variable @@ -845,7 +842,7 @@ async function changeStartSponsorButton(showStartSponsor, uploadButtonVisible) { document.getElementById("startSponsorImage").src = chrome.extension.getURL("icons/PlayerStartIconSponsorBlocker256px.png"); document.getElementById("startSponsorButton").setAttribute("title", chrome.i18n.getMessage("sponsorStart")); - if (document.getElementById("startSponsorImage").style.display != "none" && uploadButtonVisible && !hideInfoButtonPlayerControls) { + if (document.getElementById("startSponsorImage").style.display != "none" && uploadButtonVisible && !hideDeleteButtonPlayerControls) { document.getElementById("submitButton").style.display = "unset"; } else if (!uploadButtonVisible) { //disable submit button