move container service to jslib
This commit is contained in:
parent
0c7175d1bf
commit
426c536b15
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue