From b435b1449705fd312ae8194cc5adcc056bff8916 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Wed, 19 Oct 2022 23:57:58 +0200 Subject: [PATCH] Resolve `` color issue and hidden image detection #564 --- dev/Common/Html.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/Common/Html.js b/dev/Common/Html.js index 8365b4ce4..66c8d3a85 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -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, @@ -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/',