Skip to content

Commit

Permalink
Resolve <a> color issue and hidden image detection #564
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Oct 19, 2022
1 parent 4a89ede commit b435b14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dev/Common/Html.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const
tasks = {
link: 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,
Expand Down Expand Up @@ -289,8 +289,8 @@ export const
oElement.loading = 'lazy';
let attachment;
if (detectHiddenImages
&& (('' != getAttribute('height') && 3 > pInt(getAttribute('height')))
|| ('' != getAttribute('width') && 3 > pInt(getAttribute('width')))
&& ((oStyle.maxHeight && 3 > pInt(oStyle.maxHeight))
|| (oStyle.maxWidth && 3 > pInt(oStyle.maxWidth))
|| [
'email.microsoftemail.com/open',
'github.com/notifications/beacon/',
Expand Down

0 comments on commit b435b14

Please sign in to comment.