added a new possibility to enable mailgo, with the attribute mailgo in the a element
This commit is contained in:
@@ -315,8 +315,10 @@ mailgoCheckRender = event => {
|
||||
!e.classList.contains("no-mailgo")) ||
|
||||
// second case: the href=#mailgo
|
||||
(e.href && e.getAttribute("href").toLowerCase() === "#mailgo") ||
|
||||
//third case: the classList contains mailgo
|
||||
e.classList.contains("mailgo")
|
||||
// third case: the classList contains mailgo
|
||||
e.classList.contains("mailgo") ||
|
||||
// fourth case: exists the attribute mailgo in the <a> element
|
||||
!!e.getAttribute("mailgo")
|
||||
) {
|
||||
// stop the normal execution of the element click
|
||||
event.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user