Commit c667d125 by Johannes Zellner

Do not open a new tab for file downloads

1 parent f66b47bd
Showing with 1 additions and 1 deletions
......@@ -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() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!