open in wa action

This commit is contained in:
Matteo Manzinello 2019-07-18 10:14:36 +02:00
parent cb4d539f91
commit 3b13a398f4

View File

@ -487,6 +487,12 @@ const actions = {
mailToEncoded(encEmail); mailToEncoded(encEmail);
}, },
openWhatsApp: tel => {
let waUrl = "https://wa.me/" + tel;
window.open(waUrl, "_blank");
},
copy: (mail, copyButton) => { copy: (mail, copyButton) => {
copyToClipboard(mail); copyToClipboard(mail);
copyButton.textContent = "copied"; copyButton.textContent = "copied";