mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-04 03:18:49 +03:00
Bugfix pass could be null
This commit is contained in:
parent
eec27139ec
commit
11ca92685d
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ Passphrases.ask = async (key, sAskDesc, btnText) => {
|
|||
} else {
|
||||
const pass = await AskPopupView.password(sAskDesc, btnText,
|
||||
window.crypto.subtle && canUseLocalStorage(key) ? 0b1101 : 0b0101);
|
||||
pass.rememberPermanent && await saveToLocalStorage(key, pass.password);
|
||||
pass?.rememberPermanent && await saveToLocalStorage(key, pass.password);
|
||||
return pass;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue