uport-connect
Advanced tools
Comparing version 0.6.5 to 0.6.6
@@ -11,2 +11,6 @@ 'use strict'; | ||
var _mobileDetect = require('mobile-detect'); | ||
var _mobileDetect2 = _interopRequireDefault(_mobileDetect); | ||
var _qs = require('qs'); | ||
@@ -150,3 +154,8 @@ | ||
if (isOnMobile) { | ||
url = window.location.href; | ||
var md = new _mobileDetect2.default(navigator.userAgent); | ||
if (md.userAgent() === 'Chrome' && md.os() === 'iOS') { | ||
url = 'googlechrome:' + window.location.href.substring(window.location.protocol.length); | ||
} else { | ||
url = window.location.href; | ||
} | ||
} else { | ||
@@ -153,0 +162,0 @@ url = chasquiUrl + (0, _randomString2.default)(16); |
{ | ||
"name": "uport-connect", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"description": "Library for integrating uPort into your app frontend", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
import nets from 'nets' | ||
import MobileDetect from 'mobile-detect' | ||
import qs from 'qs' | ||
@@ -127,3 +128,8 @@ import randomString from './util/randomString' | ||
if (isOnMobile) { | ||
url = window.location.href | ||
const md = new MobileDetect(navigator.userAgent) | ||
if( md.userAgent() === 'Chrome' && md.os() === 'iOS' ) { | ||
url = 'googlechrome:' + window.location.href.substring(window.location.protocol.length) | ||
} else { | ||
url = window.location.href | ||
} | ||
} else { | ||
@@ -130,0 +136,0 @@ url = chasquiUrl + randomString(16) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
14585321
28
85209