mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 13:39:22 +03:00
Resolve #491
This commit is contained in:
parent
4692dde3d5
commit
cad5fb6067
3 changed files with 60 additions and 96 deletions
|
|
@ -241,7 +241,7 @@ export const
|
|||
)) {
|
||||
skipStyle = true;
|
||||
setAttribute('style', 'display:none');
|
||||
setAttribute('data-x-hidden-src', value);
|
||||
setAttribute('data-x-src-hidden', value);
|
||||
}
|
||||
else if ((attachment = findLocationByCid(value)))
|
||||
{
|
||||
|
|
@ -253,7 +253,9 @@ export const
|
|||
}
|
||||
else if ('cid:' === value.slice(0, 4))
|
||||
{
|
||||
attachment = findAttachmentByCid(value.slice(4));
|
||||
value = value.slice(4);
|
||||
setAttribute('data-x-src-cid', value);
|
||||
attachment = findAttachmentByCid(value);
|
||||
if (attachment && attachment.download) {
|
||||
oElement.src = attachment.linkPreview();
|
||||
attachment.isInline(true);
|
||||
|
|
@ -267,16 +269,16 @@ export const
|
|||
}
|
||||
else if ('data:image/' === value.slice(0, 11))
|
||||
{
|
||||
setAttribute('src', value);
|
||||
oElement.src = value;
|
||||
}
|
||||
else
|
||||
{
|
||||
setAttribute('data-x-broken-src', value);
|
||||
setAttribute('data-x-src-broken', value);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
setAttribute('data-x-broken-src', value);
|
||||
setAttribute('data-x-src-broken', value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue