fix error with href=#mailgo

This commit is contained in:
Matteo Manzinello committed 2019-05-12 12:21:38 +02:00
1 parent df23910808
commit e735733099
3 files changed
+9 -5

No files matched your search

+1 -2
View File
@@ -314,8 +314,7 @@ mailgoCheckRender = event => {
e.href.toLowerCase().startsWith(MAILTO) &&
!e.classList.contains("no-mailgo")) ||
// second case: the href=#mailgo
// TODO FIX here
(e.href && e.href.toLowerCase() === "#mailgo") ||
(e.href && e.getAttribute("href").toLowerCase() === "#mailgo") ||
//third case: the classList contains mailgo
e.classList.contains("mailgo")
) {