mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-23 21:31:29 +01:00
21 lines
471 B
TypeScript
21 lines
471 B
TypeScript
import { CryptoService } from "../abstractions/crypto.service";
|
|
|
|
export class ContainerService {
|
|
constructor(private cryptoService: CryptoService) {}
|
|
|
|
// deprecated, use attachToGlobal instead
|
|
attachToWindow(win: any) {
|
|
this.attachToGlobal(win);
|
|
}
|
|
|
|
attachToGlobal(global: any) {
|
|
if (!global.bitwardenContainerService) {
|
|
global.bitwardenContainerService = this;
|
|
}
|
|
}
|
|
|
|
getCryptoService(): CryptoService {
|
|
return this.cryptoService;
|
|
}
|
|
}
|