diff --git a/public/js/main.js b/public/js/main.js index 1864638..9cead12 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -266,10 +266,10 @@ $(function() { task.resetOutput(); }); Task.prototype.download = function() { - location.href = "/task/" + this.uuid + "/download/all.zip"; + location.href = "/task/" + this.uuid + "/download/all.zip?token=" + token; }; Task.prototype.downloadOrthophoto = function() { - location.href = "/task/" + this.uuid + "/download/orthophoto.tif"; + location.href = "/task/" + this.uuid + "/download/orthophoto.tif?token=" + token; }; var taskList = new TaskList();