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

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.
@@ -34153,6 +34153,10 @@ var Download = {
34153
34153
  }
34154
34154
 
34155
34155
  var saveAs = function saveAs(uri, filename) {
34156
+ if (window.mSewaApp && window.mSewaApp.isMsewaApp()) {
34157
+ window.mSewaApp.downloadBase64File(uri, filename);
34158
+ }
34159
+
34156
34160
  var link = document.createElement("a");
34157
34161
 
34158
34162
  if (typeof link.download === "string") {
@@ -34209,6 +34213,10 @@ var Download = {
34209
34213
  }
34210
34214
 
34211
34215
  var saveAs = function saveAs(uri, filename) {
34216
+ if (window.mSewaApp && window.mSewaApp.isMsewaApp()) {
34217
+ window.mSewaApp.downloadBase64File(uri, filename);
34218
+ }
34219
+
34212
34220
  var link = document.createElement("a");
34213
34221
 
34214
34222
  if (typeof link.download === "string") {
@@ -37128,7 +37136,7 @@ var ShareFiles = {
37128
37136
  return window.open("mailto:?body=" + shortUrl, "_blank");
37129
37137
 
37130
37138
  case "whatsapp":
37131
- return window.open("https://web.whatsapp.com/send?text=" + shortUrl, "_blank");
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");
37132
37140
 
37133
37141
  default:
37134
37142
  return window.open(shortUrl, "_blank");