How can I prevent the WhatsApp Web URL from opening in a new tab if there is already a WhatsApp Web tab open?
const msg = "*Greetings From "+this.previewData.unit_name+" "+this.previewData.unit_location+"* ";
const full = `${msg}\nPlease click the link below to get your receipt. \n ${url}`;
const whatsappUrl = "https://web.whatsapp.com:/send?text=" + encodeURIComponent(full);
window.open(whatsappUrl, '_blank');