Commit c667d125 authored by Johannes Zellner's avatar Johannes Zellner

Do not open a new tab for file downloads

parent f66b47bd
......@@ -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
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment