mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
Reduce JavaScript footprint
This commit is contained in:
parent
689126c57d
commit
b12852bd08
42 changed files with 240 additions and 426 deletions
|
|
@ -56,11 +56,9 @@ export const GnuPGUserStore = new class {
|
|||
if (iError) {
|
||||
alert(oData.ErrorMessage);
|
||||
} else if (oData.Result) {
|
||||
if (isPrivate) {
|
||||
this.privateKeys.remove(key);
|
||||
} else {
|
||||
this.publicKeys.remove(key);
|
||||
}
|
||||
isPrivate
|
||||
? this.privateKeys.remove(key)
|
||||
: this.publicKeys.remove(key);
|
||||
}
|
||||
}
|
||||
}, {
|
||||
|
|
|
|||
|
|
@ -26,9 +26,7 @@ export const MessageUserStore = new class {
|
|||
clearTimeout(this.MessageSeenTimer);
|
||||
elementById('rl-right').classList.toggle('message-selected', !!message);
|
||||
if (message) {
|
||||
if (!SettingsUserStore.usePreviewPane()) {
|
||||
AppUserStore.focusedState(Scope.MessageView);
|
||||
}
|
||||
SettingsUserStore.usePreviewPane() || AppUserStore.focusedState(Scope.MessageView);
|
||||
} else {
|
||||
AppUserStore.focusedState(Scope.MessageList);
|
||||
exitFullscreen();
|
||||
|
|
|
|||
|
|
@ -47,9 +47,7 @@ const
|
|||
i = arrayLength(armoredKeys);
|
||||
while (i--) {
|
||||
key = await openpgp.readKey({armoredKey:armoredKeys[i]});
|
||||
if (!key.err) {
|
||||
keys.push(new OpenPgpKeyModel(armoredKeys[i], key));
|
||||
}
|
||||
key.err || keys.push(new OpenPgpKeyModel(armoredKeys[i], key));
|
||||
}
|
||||
return keys;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue