gfdsgfds
This commit is contained in:
+9
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user