1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

Do not use deprecated method (#3155)

This commit is contained in:
Matt Gibson
2022-07-22 12:41:02 -04:00
committed by GitHub
parent 8cb92d425c
commit 528af15eb0
4 changed files with 3 additions and 8 deletions

View File

@@ -3,11 +3,6 @@ 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;