mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-11 09:30:46 +01:00
Fixed submit button being shown at the wrong time.
This commit is contained in:
parent
5471273673
commit
5b628ccbf9
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue