mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
When img element alt is missing, use last part of src
This commit is contained in:
parent
0f834a714f
commit
897f22ee6e
1 changed files with 1 additions and 0 deletions
|
|
@ -316,6 +316,7 @@ export const
|
||||||
{
|
{
|
||||||
setAttribute('data-x-src', value);
|
setAttribute('data-x-src', value);
|
||||||
result.hasExternals = true;
|
result.hasExternals = true;
|
||||||
|
oElement.alt || (oElement.alt = value.replace(/^.+\/([^/]+)$/, '$1'));
|
||||||
}
|
}
|
||||||
else if ('data:image/' === value.slice(0, 11))
|
else if ('data:image/' === value.slice(0, 11))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue