Update new.js

fix bug
This commit is contained in:
mayswind 2018-07-11 20:23:15 +08:00 committed by GitHub
parent 0038c76b95
commit f049393813
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@
options: angular.copy($scope.context.options) options: angular.copy($scope.context.options)
}; };
saveDownloadPath(options); saveDownloadPath(task.options);
return aria2TaskService.newTorrentTask(task, pauseOnAdded, responseCallback); return aria2TaskService.newTorrentTask(task, pauseOnAdded, responseCallback);
}; };
@ -51,7 +51,7 @@
options: angular.copy($scope.context.options) options: angular.copy($scope.context.options)
}; };
saveDownloadPath(options); saveDownloadPath(task.options);
return aria2TaskService.newMetalinkTask(task, pauseOnAdded, responseCallback); return aria2TaskService.newMetalinkTask(task, pauseOnAdded, responseCallback);
}; };