diff options
author | Ajay Ramachandran <[email protected]> | 2019-07-27 11:08:29 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2019-07-27 11:08:29 -0400 |
commit | 600365d998748316324f3f29308cfbd08ed5aa0c (patch) | |
tree | af9667241f8881a569b60088760bae81350b6482 /content.js | |
parent | 00877fb0878dfb40ace065945b21ca58cffd5250 (diff) | |
download | SponsorBlock-600365d998748316324f3f29308cfbd08ed5aa0c.tar.gz SponsorBlock-600365d998748316324f3f29308cfbd08ed5aa0c.zip |
Made it not possible to submit from the hotkey when not ready.
Diffstat (limited to 'content.js')
-rw-r--r-- | content.js | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -593,6 +593,13 @@ function sponsorMessageStarted() { } function submitSponsorTimes() { + console.log("Tessst") + if (document.getElementById("submitButton").style.display == "none") { + //don't submit, not ready + return; + } + console.log("Test") + //add loading animation document.getElementById("submitButtonImage").src = chrome.extension.getURL("icons/PlayerUploadIconSponsorBlocker256px.png"); document.getElementById("submitButton").style.animation = "rotate 1s 0s infinite"; |