1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-06 09:20:43 +01:00

move container service to jslib

This commit is contained in:
Kyle Spearrin 2018-01-09 22:28:29 -05:00
parent 0c7175d1bf
commit 426c536b15
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,22 @@
import { CryptoService } from '../abstractions/crypto.service';
import { PlatformUtilsService } from '../abstractions/platformUtils.service';
export class ContainerService {
constructor(private cryptoService: CryptoService,
private platformUtilsService: PlatformUtilsService) {
}
attachToWindow(win: any) {
if (!win.BitwardenContainerService) {
win.BitwardenContainerService = this;
}
}
getCryptoService(): CryptoService {
return this.cryptoService;
}
getPlatformUtilsService(): PlatformUtilsService {
return this.platformUtilsService;
}
}

View File

@ -1,6 +1,7 @@
export { ApiService } from './api.service';
export { AppIdService } from './appId.service';
export { ConstantsService } from './constants.service';
export { ContainerService } from './container.service';
export { CryptoService } from './crypto.service';
export { EnvironmentService } from './environment.service';
export { PasswordGenerationService } from './passwordGeneration.service';