mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 05:29:20 +03:00
Small code cleanups and fix translations
This commit is contained in:
parent
b31bf3d7f5
commit
7ccc44616d
54 changed files with 288 additions and 426 deletions
|
|
@ -2,7 +2,7 @@ import ko from 'ko';
|
|||
|
||||
import { StorageResultType, Notification } from 'Common/Enums';
|
||||
import { Layout, Focused, MessageSetAction } from 'Common/EnumsUser';
|
||||
|
||||
import { doc } from 'Common/Globals';
|
||||
import { pInt, pString } from 'Common/Utils';
|
||||
import { plainToHtml } from 'Common/UtilsUser';
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ const
|
|||
|
||||
let iMessageBodyCacheCount = 0;
|
||||
|
||||
document.body.append(hcont);
|
||||
doc.body.append(hcont);
|
||||
|
||||
class MessageUserStore {
|
||||
constructor() {
|
||||
|
|
@ -485,7 +485,7 @@ class MessageUserStore {
|
|||
if (messagesDom) {
|
||||
id = 'rl-mgs-' + message.hash.replace(/[^a-zA-Z0-9]/g, '');
|
||||
|
||||
const textBody = document.getElementById(id);
|
||||
const textBody = doc.getElementById(id);
|
||||
if (textBody) {
|
||||
textBody.rlCacheCount = ++iMessageBodyCacheCount;
|
||||
message.body = textBody;
|
||||
|
|
@ -508,7 +508,7 @@ class MessageUserStore {
|
|||
/-----BEGIN PGP SIGNED MESSAGE-----/.test(plain) && /-----BEGIN PGP SIGNATURE-----/.test(plain);
|
||||
}
|
||||
|
||||
const pre = document.createElement('pre');
|
||||
const pre = doc.createElement('pre');
|
||||
if (pgpSigned && message.isPgpSigned()) {
|
||||
pre.className = 'b-plain-openpgp signed';
|
||||
pre.textContent = plain;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue