1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-07 11:03:30 +00:00

utils global

This commit is contained in:
Kyle Spearrin
2018-05-14 23:41:12 -04:00
parent 29556c5d3b
commit 5850a590ce
4 changed files with 15 additions and 6 deletions

View File

@@ -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;
}
}