mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Use own createElement() instead of doc.createElement
This commit is contained in:
parent
7eaaa0a793
commit
23e15fd161
6 changed files with 12 additions and 11 deletions
|
|
@ -2,7 +2,7 @@ import { ComposeType, FolderType } from 'Common/EnumsUser';
|
|||
import { EmailModel } from 'Model/Email';
|
||||
import { encodeHtml } from 'Common/Html';
|
||||
import { isArray } from 'Common/Utils';
|
||||
import { doc } from 'Common/Globals';
|
||||
import { createElement } from 'Common/Globals';
|
||||
|
||||
/**
|
||||
* @param {(string|number)} value
|
||||
|
|
@ -79,7 +79,7 @@ export function htmlToPlain(html) {
|
|||
};
|
||||
|
||||
const
|
||||
tpl = doc.createElement('template'),
|
||||
tpl = createElement('template'),
|
||||
convertPre = (...args) =>
|
||||
args && 1 < args.length
|
||||
? args[1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue