1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

add support for export service

This commit is contained in:
Kyle Spearrin
2018-05-17 10:57:52 -04:00
parent ff67b9be82
commit 7167dd3fb7
3 changed files with 7 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ import {
TotpService,
UserService,
} from 'jslib/services';
import { ExportService } from 'jslib/services/export.service';
import { WebCryptoFunctionService } from 'jslib/services/webCryptoFunction.service';
import {
@@ -43,6 +44,7 @@ import {
UserService as UserServiceAbstraction,
} from 'jslib/abstractions';
import { CryptoFunctionService as CryptoFunctionServiceAbstraction } from 'jslib/abstractions/cryptoFunction.service';
import { ExportService as ExportServiceAbstraction } from 'jslib/abstractions/export.service';
import { Analytics } from 'jslib/misc';
@@ -88,6 +90,7 @@ export default class MainBackground {
autofillService: AutofillServiceAbstraction;
containerService: ContainerService;
auditService: AuditServiceAbstraction;
exportService: ExportServiceAbstraction;
analytics: Analytics;
onUpdatedRan: boolean;
@@ -146,6 +149,7 @@ export default class MainBackground {
this.totpService);
this.containerService = new ContainerService(this.cryptoService, this.platformUtilsService);
this.auditService = new AuditService(cryptoFunctionService);
this.exportService = new ExportService(this.folderService, this.cipherService);
this.analytics = new Analytics(window, () => BrowserApi.gaFilter(), this.platformUtilsService,
this.storageService, this.appIdService);