From 85558807824022d05c170cec018ca69b12659f84 Mon Sep 17 00:00:00 2001 From: Matteo Manzinello Date: Sun, 17 Nov 2019 12:22:33 +0100 Subject: [PATCH] removed brackets --- src/mailgo.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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")) ); }