1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

abstract password generation service

This commit is contained in:
Kyle Spearrin
2018-01-29 17:59:57 -05:00
parent e160b97497
commit 15f254879f
4 changed files with 15 additions and 18 deletions

View File

@@ -67,10 +67,9 @@ export class FolderService implements FolderServiceAbstraction {
return this.decryptedFolderCache;
}
const decFolders: FolderView[] = [{
id: null,
name: this.noneFolder(),
}];
const noneFolder = new FolderView();
noneFolder.name = this.noneFolder();
const decFolders: FolderView[] = [noneFolder];
const key = await this.cryptoService.getKey();
if (key == null) {