fix error with href=#mailgo

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

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")
) {