Comparing version 1.0.10 to 1.0.11
@@ -5,6 +5,9 @@ 'use strict'; | ||
// Feature detection (yes really) | ||
// For IE and Edge detection, see https://stackoverflow.com/questions/31757852#31757969 | ||
// and https://stackoverflow.com/questions/56360225#56361977 | ||
var isBrowser = (typeof navigator !== 'undefined') && !!navigator.userAgent; | ||
var isSafari = isBrowser && navigator.userAgent.match(/Safari\//) | ||
&& !navigator.userAgent.match(/Chrome\//); | ||
var isEDGE = isBrowser && navigator.userAgent.match(/Edge\/1[2345]/); | ||
var isEDGE = isBrowser && /(Edge\/)|(edg\/)/i.test(navigator.userAgent); | ||
var isIE = isBrowser && /(MSIE 9|MSIE 10|rv:11.0)/i.test(navigator.userAgent); | ||
var _backend = null; | ||
@@ -29,4 +32,4 @@ function getBackend() { | ||
return resolve({ u2f: window.u2f }); | ||
if (isEDGE) | ||
// We don't want to check for Google's extension hack on EDGE | ||
if (isEDGE || isIE) | ||
// We don't want to check for Google's extension hack on EDGE & IE | ||
// as it'll cause trouble (popups, etc) | ||
@@ -33,0 +36,0 @@ return notSupported(); |
@@ -178,3 +178,4 @@ 'use strict'; | ||
return function () { return __awaiter(_this, void 0, void 0, function () { | ||
var _a, dom, mock, gmp, api; | ||
var dom, mock, gmp, api; | ||
var _a; | ||
return __generator(this, function (_b) { | ||
@@ -181,0 +182,0 @@ switch (_b.label) { |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"author": "Gustaf Räntilä <g.rantila@gmail.com>", | ||
@@ -45,3 +45,3 @@ "repository": { | ||
"jsdom": "11.x", | ||
"mocha": "5.x", | ||
"mocha": "6.x", | ||
"pre-commit": "1.x", | ||
@@ -48,0 +48,0 @@ "rimraf": "2.x", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
57649
1166