mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
#89 added downloading of decrypted attachments
This commit is contained in:
parent
4a1c3beb78
commit
25a786d584
5 changed files with 36 additions and 30 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue