mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Idea for #1641
This commit is contained in:
parent
b2b3dac35b
commit
e867000ff7
|
@ -312,9 +312,17 @@ export const
|
|||
// https://github.com/the-djmaze/snappymail/issues/1125
|
||||
tmpl.content.querySelectorAll('form,button').forEach(oElement => replaceWithChildren(oElement));
|
||||
|
||||
// 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,
|
||||
|
|
Loading…
Reference in a new issue