#89 added downloading of decrypted attachments

This commit is contained in:
the-djmaze 2022-02-10 16:35:55 +01:00
parent 4a1c3beb78
commit 25a786d584
5 changed files with 36 additions and 30 deletions

View file

@ -18,7 +18,6 @@ import {
import {
doc,
elementById,
createElement,
$htmlCL,
Settings,
SettingsGet,
@ -546,23 +545,6 @@ class AppUser extends AbstractApp {
}, query);
}
/**
* @param {string} link
* @returns {boolean}
*/
download(link) {
if (ThemeStore.isMobile()) {
open(link, '_self');
focus();
} else {
const oLink = createElement('a');
oLink.href = link;
doc.body.appendChild(oLink).click();
oLink.remove();
}
return true;
}
logout() {
Remote.request('Logout', () => rl.logoutReload());
}