diff options
author | Johannes Zellner <johannes@cloudron.io> | 2017-04-07 16:51:41 +0200 |
---|---|---|
committer | Johannes Zellner <johannes@cloudron.io> | 2017-04-07 16:51:41 +0200 |
commit | c667d125938bbf6e89c89572646cd06f3e2bffd3 (patch) | |
tree | 0e794edb1409ba0c8d3950909871ca997f551001 | |
parent | f66b47bd92369aa3c289a8f08de98e7e2ba7b2b0 (diff) | |
download | Surfer-c667d125938bbf6e89c89572646cd06f3e2bffd3.tar.gz Surfer-c667d125938bbf6e89c89572646cd06f3e2bffd3.tar.zst Surfer-c667d125938bbf6e89c89572646cd06f3e2bffd3.zip |
Do not open a new tab for file downloads
-rw-r--r-- | frontend/js/app.js | 2 |
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) { | |||
138 | function download(entry) { | 138 | function 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 | ||
144 | function up() { | 144 | function up() { |