msg in wa
This commit is contained in:
parent
b0ec8a49cf
commit
04d299e19a
@ -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();
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user