aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/js
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@cloudron.io>2017-04-07 16:51:41 +0200
committerJohannes Zellner <johannes@cloudron.io>2017-04-07 16:51:41 +0200
commitc667d125938bbf6e89c89572646cd06f3e2bffd3 (patch)
tree0e794edb1409ba0c8d3950909871ca997f551001 /frontend/js
parentf66b47bd92369aa3c289a8f08de98e7e2ba7b2b0 (diff)
downloadSurfer-c667d125938bbf6e89c89572646cd06f3e2bffd3.tar.gz
Surfer-c667d125938bbf6e89c89572646cd06f3e2bffd3.tar.zst
Surfer-c667d125938bbf6e89c89572646cd06f3e2bffd3.zip
Do not open a new tab for file downloads
Diffstat (limited to 'frontend/js')
-rw-r--r--frontend/js/app.js2
1 files changed, 1 insertions, 1 deletions
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) {
138function download(entry) { 138function download(entry) {
139 if (entry.isDirectory) return; 139 if (entry.isDirectory) return;
140 140
141 window.open(encode('/api/files/' + sanitize(app.path + '/' + entry.filePath)) + '?access_token=' + localStorage.accessToken); 141 window.location.href = encode('/api/files/' + sanitize(app.path + '/' + entry.filePath)) + '?access_token=' + localStorage.accessToken;
142} 142}
143 143
144function up() { 144function up() {