gulp
This commit is contained in:
parent
74b0961d30
commit
65b6ab384a
3
dist/mailgo.js
vendored
3
dist/mailgo.js
vendored
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user