X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=frontend%2Fjs%2Fapp.js;h=0875f1459e0d820299ab9cb075e91c1ee9256dbd;hb=c667d125938bbf6e89c89572646cd06f3e2bffd3;hp=bf9b5348953abfc6d67effd7ce29394cddffd857;hpb=f66b47bd92369aa3c289a8f08de98e7e2ba7b2b0;p=perso%2FImmae%2FProjets%2FNodejs%2FSurfer.git diff --git a/frontend/js/app.js b/frontend/js/app.js index bf9b534..0875f14 100644 --- a/frontend/js/app.js +++ b/frontend/js/app.js @@ -138,7 +138,7 @@ function open(entry) { function download(entry) { if (entry.isDirectory) return; - window.open(encode('/api/files/' + sanitize(app.path + '/' + entry.filePath)) + '?access_token=' + localStorage.accessToken); + window.location.href = encode('/api/files/' + sanitize(app.path + '/' + entry.filePath)) + '?access_token=' + localStorage.accessToken; } function up() {