forked from mystiq/hydrogen-web
show error
This commit is contained in:
parent
f58a3ee975
commit
6375574a56
1 changed files with 6 additions and 2 deletions
|
@ -139,9 +139,13 @@ export class SessionStatusViewModel extends ViewModel {
|
|||
}
|
||||
}
|
||||
|
||||
enterPassphrase(passphrase) {
|
||||
async enterPassphrase(passphrase) {
|
||||
if (passphrase) {
|
||||
this._session.enableSecretStorage("recoverykey", passphrase);
|
||||
try {
|
||||
await this._session.enableSecretStorage("recoverykey", passphrase);
|
||||
} catch (err) {
|
||||
alert(`Could not set up secret storage: ${err.message}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue