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,10 +2,8 @@ import { ComposeType, FolderType } from 'Common/EnumsUser';
|
|||
import { EmailModel } from 'Model/Email';
|
||||
import { showScreenPopup } from 'Knoin/Knoin';
|
||||
import { encodeHtml } from 'Common/Html';
|
||||
|
||||
const
|
||||
tpl = document.createElement('template'),
|
||||
isArray = Array.isArray;
|
||||
import { isArray } from 'Common/Utils';
|
||||
import { doc } from 'Common/Globals';
|
||||
|
||||
/**
|
||||
* @param {(string|number)} value
|
||||
|
|
@ -81,7 +79,9 @@ export function htmlToPlain(html) {
|
|||
return '';
|
||||
};
|
||||
|
||||
const convertPre = (...args) =>
|
||||
const
|
||||
tpl = doc.createElement('template'),
|
||||
convertPre = (...args) =>
|
||||
args && 1 < args.length
|
||||
? args[1]
|
||||
.toString()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue