This commit is contained in:
Matteo Manzinello 2019-05-02 10:58:05 +02:00
parent 74b0961d30
commit 65b6ab384a
1 changed files with 3 additions and 0 deletions

3
dist/mailgo.js vendored
View File

@ -16,7 +16,10 @@ mailtos.forEach(mailto => {
mailto.addEventListener(
"click",
event => {
// blocco l'esecuzione normale del mailto:
event.preventDefault();
// mostro un alert
let r = confirm("You have clicked mailto: " + mailto.href);
if (r === true) {
location.href = mailto.href;