1window.addEventListener("message", () => {
2 this.receiveMessage();
3}, false)
4
1constructor(private _authService: AuthService, private _router: Router) {
2 if (window.addEventListener) {
3 window.addEventListener("message", this.receiveMessage.bind(this), false);
4 } else {
5 (<any>window).attachEvent("onmessage", this.receiveMessage.bind(this));
6 }
7}
8