1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 18:53:29 +00:00

move container service to jslib

This commit is contained in:
Kyle Spearrin
2018-01-09 22:28:21 -05:00
parent f20c217321
commit 893c41d7cf
2 changed files with 1 additions and 25 deletions

View File

@@ -1,24 +0,0 @@
import {
CryptoService,
PlatformUtilsService,
} from 'jslib/abstractions';
export default 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;
}
}