mirror of
https://github.com/Eugeny/tabby
synced 2024-11-15 01:17:14 +00:00
lint
This commit is contained in:
parent
33479a17dd
commit
2b2865e5f6
1 changed files with 2 additions and 2 deletions
|
@ -3,9 +3,9 @@ import { promisify } from 'util'
|
|||
import { Injectable, NgZone } from '@angular/core'
|
||||
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { AsyncSubject, Subject, Observable } from 'rxjs'
|
||||
import { wrapPromise } from 'terminus-core'
|
||||
import { UnlockVaultModalComponent } from '../components/unlockVaultModal.component'
|
||||
import { NotificationsService } from '../services/notifications.service'
|
||||
import { wrapPromise } from 'utils'
|
||||
|
||||
const PBKDF_ITERATIONS = 100000
|
||||
const PBKDF_DIGEST = 'sha512'
|
||||
|
@ -121,7 +121,7 @@ export class VaultService {
|
|||
passphrase = await this.getPassphrase()
|
||||
}
|
||||
try {
|
||||
return wrapPromise(this.zone, decryptVault(storage, passphrase))
|
||||
return await wrapPromise(this.zone, decryptVault(storage, passphrase))
|
||||
} catch (e) {
|
||||
_rememberedPassphrase = null
|
||||
if (e.toString().includes('BAD_DECRYPT')) {
|
||||
|
|
Loading…
Reference in a new issue