This commit is contained in:
2026-09-26 15:23:36 +02:00
parent 990f463534
commit 27f5e3563f
18 changed files with 1226 additions and 559 deletions
+9 -2
View File
@@ -621,8 +621,15 @@
if (status) { status.style.display = 'block'; status.style.color = '#98c379'; status.textContent = 'Passkey added!'; }
await loadPasskeys();
} catch (err) {
if (err.name !== 'NotAllowedError') {
if (status) { status.style.display = 'block'; status.style.color = '#e06c75'; status.textContent = 'Error: ' + err.message; }
console.warn('[SETTINGS_PASSKEY] Add passkey error:', err);
if (status) {
status.style.display = 'block';
status.style.color = '#e06c75';
if (err && err.name === 'NotAllowedError') {
status.textContent = 'Passkey creation was cancelled or blocked. If Bitwarden or another password manager is locked, please unlock it.';
} else {
status.textContent = 'Error: ' + ((err && err.message) || 'Unknown error');
}
}
} finally {
if (btn) btn.disabled = false;