@adapty/capacitor 3.16.0-beta.0 → 3.16.0

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/plugin.js CHANGED
@@ -1745,7 +1745,7 @@ var capacitorAdaptyCapacitorPlugin = (function (exports, core) {
1745
1745
  },
1746
1746
  };
1747
1747
 
1748
- var version = '3.16.0-beta.0';
1748
+ var version = '3.16.0';
1749
1749
 
1750
1750
  class Log {
1751
1751
  // Formats a message for logging
@@ -4424,7 +4424,12 @@ var capacitorAdaptyCapacitorPlugin = (function (exports, core) {
4424
4424
  onAndroidSystemBack: () => true,
4425
4425
  onUrlPress: (url) => {
4426
4426
  if (typeof window !== 'undefined') {
4427
- window.open(url, '_blank');
4427
+ try {
4428
+ window.open(new URL(url), '_blank');
4429
+ }
4430
+ catch (_a) {
4431
+ Log.warn('onUrlPress', () => `Invalid URL: ${url}`);
4432
+ }
4428
4433
  }
4429
4434
  return false;
4430
4435
  },