Fixed buttons appearing too early not hidden (submit and clear button).

This commit is contained in:
Ajay Ramachandran
2019-08-23 20:52:12 -04:00
parent 1c4ca8da26
commit e63389cfa3

View File

@@ -254,8 +254,6 @@ function videoIDChange(id) {
previousVideoID = id; previousVideoID = id;
} }
addButtons();
//close popup //close popup
closeInfoMenu(); closeInfoMenu();
@@ -596,6 +594,8 @@ function addButtons() {
function updateVisibilityOfPlayerControlsButton() { function updateVisibilityOfPlayerControlsButton() {
//not on a proper video yet //not on a proper video yet
if (!sponsorVideoID) return; if (!sponsorVideoID) return;
addButtons();
if (hideVideoPlayerControls) { if (hideVideoPlayerControls) {
removePlayerControlsButton(); removePlayerControlsButton();