mirror of
https://github.com/bitwarden/browser
synced 2026-01-07 11:03:30 +00:00
utils global
This commit is contained in:
@@ -6,9 +6,14 @@ export class ContainerService {
|
||||
private platformUtilsService: PlatformUtilsService) {
|
||||
}
|
||||
|
||||
// deprecated, use attachToGlobal instead
|
||||
attachToWindow(win: any) {
|
||||
if (!win.bitwardenContainerService) {
|
||||
win.bitwardenContainerService = this;
|
||||
this.attachToGlobal(win);
|
||||
}
|
||||
|
||||
attachToGlobal(global: any) {
|
||||
if (!global.bitwardenContainerService) {
|
||||
global.bitwardenContainerService = this;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user