mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-30 13:03:53 +01:00
navigate in zone
This commit is contained in:
parent
30a77e0c43
commit
206530a940
@ -56,7 +56,6 @@ export default class RuntimeBackground {
|
|||||||
|
|
||||||
if (this.isSafari) {
|
if (this.isSafari) {
|
||||||
// Reload the popup when it's opened
|
// Reload the popup when it's opened
|
||||||
// TODO
|
|
||||||
/*
|
/*
|
||||||
this.runtime.addEventListener('popover', (event: any) => {
|
this.runtime.addEventListener('popover', (event: any) => {
|
||||||
const win: Window = event.target.contentWindow;
|
const win: Window = event.target.contentWindow;
|
||||||
|
@ -100,7 +100,7 @@ export class AppComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
this.changeDetectorRef.detectChanges();
|
this.changeDetectorRef.detectChanges();
|
||||||
});
|
});
|
||||||
} else if (msg.command === 'authBlocked') {
|
} else if (msg.command === 'authBlocked') {
|
||||||
this.ngZone.run(() => {
|
this.ngZone.run(() => {
|
||||||
this.router.navigate(['home']);
|
this.router.navigate(['home']);
|
||||||
});
|
});
|
||||||
@ -128,7 +128,9 @@ export class AppComponent implements OnInit {
|
|||||||
window.setTimeout(() => BrowserApi.reloadExtension(window), 2000);
|
window.setTimeout(() => BrowserApi.reloadExtension(window), 2000);
|
||||||
}
|
}
|
||||||
} else if (msg.command === 'reloadPopup') {
|
} else if (msg.command === 'reloadPopup') {
|
||||||
this.router.navigate(['/']);
|
this.ngZone.run(() => {
|
||||||
|
this.router.navigate(['/']);
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
msg.webExtSender = sender;
|
msg.webExtSender = sender;
|
||||||
this.broadcasterService.send(msg);
|
this.broadcasterService.send(msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user