@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.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -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
|
-
|
|
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");
|