mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
Resolve <a> color issue and hidden image detection #564
This commit is contained in:
parent
4a89edec01
commit
b435b14497
1 changed files with 3 additions and 3 deletions
|
|
@ -103,7 +103,7 @@ export const
|
||||||
tasks = {
|
tasks = {
|
||||||
link: value => {
|
link: value => {
|
||||||
if (/^#[a-fA-Z0-9]{3,6}$/.test(value)) {
|
if (/^#[a-fA-Z0-9]{3,6}$/.test(value)) {
|
||||||
tpl.content.querySelectorAll('a').forEach(node => node.style.color = value)
|
tpl.content.querySelectorAll('a').forEach(node => node.style.color || (node.style.color = value))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
text: (value, node) => node.style.color = value,
|
text: (value, node) => node.style.color = value,
|
||||||
|
|
@ -289,8 +289,8 @@ export const
|
||||||
oElement.loading = 'lazy';
|
oElement.loading = 'lazy';
|
||||||
let attachment;
|
let attachment;
|
||||||
if (detectHiddenImages
|
if (detectHiddenImages
|
||||||
&& (('' != getAttribute('height') && 3 > pInt(getAttribute('height')))
|
&& ((oStyle.maxHeight && 3 > pInt(oStyle.maxHeight))
|
||||||
|| ('' != getAttribute('width') && 3 > pInt(getAttribute('width')))
|
|| (oStyle.maxWidth && 3 > pInt(oStyle.maxWidth))
|
||||||
|| [
|
|| [
|
||||||
'email.microsoftemail.com/open',
|
'email.microsoftemail.com/open',
|
||||||
'github.com/notifications/beacon/',
|
'github.com/notifications/beacon/',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue