diff --git a/src/scripts/controllers/new.js b/src/scripts/controllers/new.js index 8ac5fac..08bacac 100644 --- a/src/scripts/controllers/new.js +++ b/src/scripts/controllers/new.js @@ -64,6 +64,10 @@ var tasks = []; for (var i = 0; i < urls.length; i++) { + if (urls[i] == '' || urls[i].trim() == '') { + continue; + } + tasks.push({ urls: [urls[i].trim()], options: options @@ -92,7 +96,7 @@ optionStatus.setReady(); }; - + $rootScope.loadPromise = $timeout(function () { ;//Do Nothing }, 100); diff --git a/src/views/new.html b/src/views/new.html index f561ccb..702b2ea 100644 --- a/src/views/new.html +++ b/src/views/new.html @@ -19,7 +19,7 @@