@egovernments/digit-ui-libraries 1.5.0-beta.4 → 1.5.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37133,10 +37133,10 @@ var ShareFiles = {
37133
37133
  targetLink: function targetLink(target, shortUrl) {
37134
37134
  switch (target) {
37135
37135
  case "mail":
37136
- return window.open("mailto:?body=" + shortUrl, "_blank");
37136
+ return window.open("mailto:?body=" + encodeURIComponent(shortUrl), "_blank");
37137
37137
 
37138
37138
  case "whatsapp":
37139
- if (window.mSewaApp && window.mSewaApp.isMsewaApp()) return window.open("https://wa.me/send?text=" + shortUrl, "_blank");else return window.open("https://web.whatsapp.com/send?text=" + shortUrl, "_blank");
37139
+ return window.open('https://' + (window.mSewaApp && window.mSewaApp.isMsewaApp() ? 'api' : 'web') + '.whatsapp.com/send?text=' + encodeURIComponent(shortUrl), "_blank");
37140
37140
 
37141
37141
  default:
37142
37142
  return window.open(shortUrl, "_blank");