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:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user