mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-02 21:12:02 +08: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);
|
||||
result.hasExternals = true;
|
||||
oElement.alt || (oElement.alt = value.replace(/^.+\/([^/]+)$/, '$1'));
|
||||
}
|
||||
else if ('data:image/' === value.slice(0, 11))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue