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.
@@ -1,4 +1,4 @@
1
- var version$3 = "0.0.6";
1
+ var version$3 = "0.0.7";
2
2
  var packageJSON$3 = {
3
3
  version: version$3};
4
4
 
@@ -2343,6 +2343,7 @@ function resolveOptions(option) {
2343
2343
  var timeout;
2344
2344
  var intent;
2345
2345
  var packageName;
2346
+ var allowIntent = true;
2346
2347
  var bundleId;
2347
2348
  var trackId;
2348
2349
  var universal;
@@ -2352,6 +2353,7 @@ function resolveOptions(option) {
2352
2353
  case 'android':
2353
2354
  if (typeof option.android === 'undefined')
2354
2355
  return [[], 0];
2356
+ allowIntent = option.android.allowIntent !== false;
2355
2357
  intent = stripURL(option.android.intent);
2356
2358
  scheme = stripURL(option.android.scheme);
2357
2359
  fallback = stripURL(option.android.fallback);
@@ -2370,11 +2372,11 @@ function resolveOptions(option) {
2370
2372
  if (typeof parsed.fallback !== 'undefined' && typeof fallback === 'undefined')
2371
2373
  fallback = parsed.fallback;
2372
2374
  }
2373
- if (typeof scheme !== 'undefined' && typeof intent === 'undefined')
2375
+ if (allowIntent && typeof scheme !== 'undefined' && typeof intent === 'undefined')
2374
2376
  intent = createIntentURL(scheme, packageName, fallback);
2375
2377
  if (typeof timeout === 'undefined')
2376
2378
  timeout = ANDROID_DEFAULT_TIMEOUT;
2377
- if (typeof intent !== 'undefined' && canOpenIntent())
2379
+ if (allowIntent && typeof intent !== 'undefined' && canOpenIntent())
2378
2380
  resolved.push(['intent', intent]);
2379
2381
  if (typeof scheme !== 'undefined' && allowScheme)
2380
2382
  resolved.push(['scheme', scheme]);