mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-19 13:18:59 +08:00
Bugfix: failed to set message data from dom
This commit is contained in:
parent
ff2a557f1e
commit
2c40475bfa
2 changed files with 1 additions and 2 deletions
|
@ -476,7 +476,6 @@ class MessageModel extends AbstractModel {
|
||||||
node.loading = 'lazy';
|
node.loading = 'lazy';
|
||||||
}
|
}
|
||||||
node.src = node.getAttribute(attr);
|
node.src = node.getAttribute(attr);
|
||||||
node.removeAttribute('data-loaded');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
attr = this.externalProxy ? 'data-x-additional-style-url' : 'data-x-style-url';
|
attr = this.externalProxy ? 'data-x-additional-style-url' : 'data-x-style-url';
|
||||||
|
|
|
@ -494,8 +494,8 @@ class MessageUserStore {
|
||||||
const textBody = document.getElementById(id);
|
const textBody = document.getElementById(id);
|
||||||
if (textBody) {
|
if (textBody) {
|
||||||
textBody.rlCacheCount = ++iMessageBodyCacheCount;
|
textBody.rlCacheCount = ++iMessageBodyCacheCount;
|
||||||
message.fetchDataFromDom();
|
|
||||||
message.body = textBody;
|
message.body = textBody;
|
||||||
|
message.fetchDataFromDom();
|
||||||
} else {
|
} else {
|
||||||
let isHtml = false;
|
let isHtml = false;
|
||||||
if (json.Html) {
|
if (json.Html) {
|
||||||
|
|
Loading…
Reference in a new issue