data-tel!

This commit is contained in:
Matteo Manzinello 2019-09-16 23:37:19 +02:00
parent 153ced3b9b
commit 7a2db10072
3 changed files with 6 additions and 5 deletions

2
dist/mailgo.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -413,15 +413,16 @@ const mailgoRender = (type = MAIL_TYPE, mailgo) => {
.split(TEL)[1]
.trim()
);
}
if (mailgo.href && mailgo.href.toLowerCase().startsWith(CALLTO)) {
} else if (mailgo.href && mailgo.href.toLowerCase().startsWith(CALLTO)) {
tel = decodeURIComponent(
mailgo.href
.split("?")[0]
.split(CALLTO)[1]
.trim()
);
} else if (mailgo.hasAttribute("data-tel")) {
tel = mailgo.getAttribute("data-tel");
msg = mailgo.getAttribute("data-msg");
}
// information