diff --git a/src/mailgo.js b/src/mailgo.js index 1cb9cb7..c64f203 100644 --- a/src/mailgo.js +++ b/src/mailgo.js @@ -587,12 +587,12 @@ const mailgoVersion = "MAILGO_VERSION"; (element.href.toLowerCase().startsWith(TEL) || element.href.toLowerCase().startsWith(CALLTO)) && !element.classList.contains("no-mailgo")) || - ((element.hasAttribute("data-tel") && + (element.hasAttribute("data-tel") && // second case: the href=#mailgo - (element.href && - element.getAttribute("href").toLowerCase() === "#mailgo")) || - // third case: the classList contains mailgo - (element.classList && element.classList.contains("mailgo"))) + element.href && + element.getAttribute("href").toLowerCase() === "#mailgo") || + // third case: the classList contains mailgo + (element.classList && element.classList.contains("mailgo")) ); }