msg in wa

This commit is contained in:
Matteo Manzinello 2019-10-27 14:13:52 +01:00
parent b0ec8a49cf
commit 04d299e19a

View File

@ -544,18 +544,23 @@
openTelegram: () => { openTelegram: () => {
// Telegram url // Telegram url
let tgUrl = "https://t.me/" + telegramUsername; let tgUrl = "https://t.me/" + telegramUsername;
// open the url // open the url
window.open(tgUrl, "_blank"); window.open(tgUrl, "_blank");
// hide the modal // hide the modal
hideMailgo(); hideMailgo();
}, },
openSkype: () => { openSkype: () => {
let skype = skypeUsername !== "" ? skypeUsername : tel; let skype = skypeUsername !== "" ? skypeUsername : tel;
// Telegram url // Telegram url
let skypeUrl = "skype:" + skype; let skypeUrl = "skype:" + skype;
// open the url // open the url
window.open(skypeUrl, "_blank"); window.open(skypeUrl, "_blank");
// hide the modal // hide the modal
hideMailgo(); hideMailgo();
}, },
@ -563,8 +568,13 @@
openWhatsApp: () => { openWhatsApp: () => {
// WhatsApp url // WhatsApp url
let waUrl = "https://wa.me/" + tel; let waUrl = "https://wa.me/" + tel;
// the details if provided
if (msg) waUrl + "?text=" + msg;
// open the url // open the url
window.open(waUrl, "_blank"); window.open(waUrl, "_blank");
// hide the modal // hide the modal
hideMailgo(); hideMailgo();
}, },