From ca8404147d33229b66f71d662231bdbe9f365212 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 1 Aug 2019 15:19:58 -0400 Subject: [PATCH] Made clicking upload hide the clear button --- content.js | 3 +-- popup.js | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content.js b/content.js index c66e6937..00e47c84 100644 --- a/content.js +++ b/content.js @@ -850,8 +850,7 @@ function sendSubmitMessage(){ submitButton.style.animation = "rotate 1s"; //when the animation is over, hide the button submitButton.addEventListener("animationend", function() { - submitButton.style.animation = "unset"; - submitButton.style.display = "none"; + changeStartSponsorButton(true, false); }); //clear the sponsor times diff --git a/popup.js b/popup.js index b86ea987..4b1c397f 100644 --- a/popup.js +++ b/popup.js @@ -186,6 +186,7 @@ function runThePopup() { } else { SB.sponsorTimesViewsDisplayEndWord.innerText = "sponsor segment." } + SB.sponsorTimesViewsDisplay.innerText = viewCount; SB.sponsorTimesViewsContainer.style.display = "unset"; }