Comparing version 0.0.7 to 0.0.8
@@ -68,8 +68,10 @@ 'use strict'; | ||
if ( navigator.userAgent.match(/Safari\//) | ||
&& !navigator.userAgent.match(/Chrome\//) ) | ||
{ | ||
return Promise.reject( new Error( "U2F not supported" ) ); | ||
} | ||
var isSafari = navigator.userAgent.match( /Safari\// ) | ||
&& !navigator.userAgent.match( /Chrome\// ); | ||
var isEDGE = navigator.userAgent.match( /Edge\/12/ ); | ||
if ( isSafari || isEDGE ) | ||
return Promise.resolve( false ); | ||
return defer( Promise, coreApi.isSupported ).promise; | ||
@@ -76,0 +78,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"author": "Gustaf Räntilä <g.rantila@gmail.com>", | ||
@@ -8,0 +8,0 @@ "repository": { |
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
19373