Disable auto prompt for mobile chrome (#1156)
This commit is contained in:
parent
ccdf05a635
commit
7c8e95d408
|
@ -105,8 +105,8 @@ function start() {
|
|||
|
||||
stopWebAuthn = false;
|
||||
|
||||
if (navigator.userAgent.indexOf(' Safari/') !== -1 && navigator.userAgent.indexOf('Chrome') === -1) {
|
||||
// Safari blocks non-user initiated WebAuthn requests.
|
||||
if (callbackUri != null || (navigator.userAgent.indexOf(' Safari/') !== -1 && navigator.userAgent.indexOf('Chrome') === -1)) {
|
||||
// Safari and mobile chrome blocks non-user initiated WebAuthn requests.
|
||||
} else {
|
||||
executeWebAuthn();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue