chayns-api 2.2.17 → 2.2.18

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.
@@ -374,7 +374,10 @@ class AppWrapper {
374
374
  });
375
375
  },
376
376
  openUrl: async value => {
377
- window.open(value.url);
377
+ this.appCall(9, {
378
+ url: value.url,
379
+ inAppBrowser: value.openInApp
380
+ });
378
381
  },
379
382
  openVideo: async value => {
380
383
  this.appCall(15, {
@@ -337,7 +337,10 @@ export class AppWrapper {
337
337
  });
338
338
  },
339
339
  openUrl: async value => {
340
- window.open(value.url);
340
+ this.appCall(9, {
341
+ url: value.url,
342
+ inAppBrowser: value.openInApp
343
+ });
341
344
  },
342
345
  openVideo: async value => {
343
346
  this.appCall(15, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "2.2.17",
3
+ "version": "2.2.18",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",