Cleanup *App classes

This commit is contained in:
djmaze 2021-03-25 10:54:40 +01:00
parent 673bd49095
commit 240b0381f9
5 changed files with 23 additions and 38 deletions

View file

@ -867,6 +867,23 @@ class AppUser extends AbstractApp {
}
}
/**
* @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.logout(() => this.logoutReload((SettingsGet('ParentEmail')||{length:0}).length));
}