2018-01-10 04:28:29 +01:00
|
|
|
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) {
|
2018-01-11 20:00:32 +01:00
|
|
|
if (!win.bitwardenContainerService) {
|
|
|
|
win.bitwardenContainerService = this;
|
2018-01-10 04:28:29 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
getCryptoService(): CryptoService {
|
|
|
|
return this.cryptoService;
|
|
|
|
}
|
|
|
|
|
|
|
|
getPlatformUtilsService(): PlatformUtilsService {
|
|
|
|
return this.platformUtilsService;
|
|
|
|
}
|
|
|
|
}
|