1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

Disable auto prompt for mobile chrome (#1156)

This commit is contained in:
Oscar Hinton
2021-08-26 18:14:18 +02:00
committed by GitHub
parent ccdf05a635
commit 7c8e95d408

View File

@@ -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();
}