web-launch-kit 0.0.6 → 0.0.7

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.
@@ -4,7 +4,7 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.LaunchKit = {}));
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
7
- var version$3 = "0.0.6";
7
+ var version$3 = "0.0.7";
8
8
  var packageJSON$3 = {
9
9
  version: version$3};
10
10
 
@@ -2349,6 +2349,7 @@
2349
2349
  var timeout;
2350
2350
  var intent;
2351
2351
  var packageName;
2352
+ var allowIntent = true;
2352
2353
  var bundleId;
2353
2354
  var trackId;
2354
2355
  var universal;
@@ -2358,6 +2359,7 @@
2358
2359
  case 'android':
2359
2360
  if (typeof option.android === 'undefined')
2360
2361
  return [[], 0];
2362
+ allowIntent = option.android.allowIntent !== false;
2361
2363
  intent = stripURL(option.android.intent);
2362
2364
  scheme = stripURL(option.android.scheme);
2363
2365
  fallback = stripURL(option.android.fallback);
@@ -2376,11 +2378,11 @@
2376
2378
  if (typeof parsed.fallback !== 'undefined' && typeof fallback === 'undefined')
2377
2379
  fallback = parsed.fallback;
2378
2380
  }
2379
- if (typeof scheme !== 'undefined' && typeof intent === 'undefined')
2381
+ if (allowIntent && typeof scheme !== 'undefined' && typeof intent === 'undefined')
2380
2382
  intent = createIntentURL(scheme, packageName, fallback);
2381
2383
  if (typeof timeout === 'undefined')
2382
2384
  timeout = ANDROID_DEFAULT_TIMEOUT;
2383
- if (typeof intent !== 'undefined' && canOpenIntent())
2385
+ if (allowIntent && typeof intent !== 'undefined' && canOpenIntent())
2384
2386
  resolved.push(['intent', intent]);
2385
2387
  if (typeof scheme !== 'undefined' && allowScheme)
2386
2388
  resolved.push(['scheme', scheme]);