Made the submission process hidden until you record your first time

This commit is contained in:
Ajay Ramachandran
2019-07-09 22:23:35 -04:00
parent 8d7b66d7d4
commit 26ea70da61
3 changed files with 35 additions and 17 deletions

View File

@@ -38,7 +38,7 @@ function submitTimes(videoID) {
chrome.storage.local.get([sponsorTimeKey], function(result) {
let sponsorTimes = result[sponsorTimeKey];
if (sponsorTimes != undefined && sponsorTimes != []) {
if (sponsorTimes != undefined && sponsorTimes.length > 0) {
//submit these times
for (let i = 0; i < sponsorTimes.length; i++) {
let xmlhttp = new XMLHttpRequest();