mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-02 02:18:49 +03:00
Remove unused old solution of #1641
This commit is contained in:
parent
ef49cc142e
commit
61a16e2e72
1 changed files with 2 additions and 12 deletions
|
|
@ -312,6 +312,8 @@ export const
|
|||
// https://github.com/the-djmaze/snappymail/issues/1860
|
||||
.replace(/<(\/?)x-html(\s[^>]*)?>/gi, '')
|
||||
.replace(/<(\/?)head(\s[^>]*)?>/gi, '')
|
||||
// .replace(/<body(\s[^>]*)?>/i, '<article class="mail-body"$1>')
|
||||
// .replace(/<\/?body(\s[^>]*)?>.*?$/gi, '<$1article$2>')
|
||||
.replace(/<body(\s[^>]*)?>/i, '<div class="mail-body"$1>')
|
||||
.replace(/<(\/?)body(\s[^>]*)?>/gi, '<$1div$2>')
|
||||
// .replace(/<\/?(html|head)[^>]*>/gi, '')
|
||||
|
|
@ -361,18 +363,6 @@ export const
|
|||
});
|
||||
*/
|
||||
|
||||
// https://github.com/the-djmaze/snappymail/issues/1641
|
||||
let body = tmpl.content.querySelector('.mail-body');
|
||||
[...tmpl.content.querySelectorAll('.mail-body + .mail-body')]
|
||||
.forEach(oElement => body.append(...oElement.childNodes));
|
||||
/*
|
||||
.forEach(oElement => {
|
||||
let bq = createElement('blockquote');
|
||||
bq.append(...oElement.childNodes);
|
||||
body.replaceWith(bq);
|
||||
});
|
||||
*/
|
||||
|
||||
[...tmpl.content.querySelectorAll('*')].forEach(oElement => {
|
||||
const name = oElement.tagName,
|
||||
oStyle = oElement.style;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue