removed brackets

This commit is contained in:
Matteo Manzinello 2019-11-17 12:22:33 +01:00
parent aefb6f0f27
commit 8555880782

View File

@ -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"))
);
}