mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
bg null logging
This commit is contained in:
parent
b55398d7ac
commit
092abb2aed
@ -14,7 +14,12 @@ export class LaunchGuardService implements CanActivate {
|
|||||||
constructor(private cryptoService: CryptoService, private userService: UserService, private router: Router) { }
|
constructor(private cryptoService: CryptoService, private userService: UserService, private router: Router) { }
|
||||||
|
|
||||||
async canActivate() {
|
async canActivate() {
|
||||||
if (BrowserApi.getBackgroundPage() == null) {
|
const bg = BrowserApi.getBackgroundPage();
|
||||||
|
if (bg == null) {
|
||||||
|
// tslint:disable-next-line
|
||||||
|
console.log('Background page is null.');
|
||||||
|
// tslint:disable-next-line
|
||||||
|
console.log(bg);
|
||||||
this.router.navigate(['private-mode']);
|
this.router.navigate(['private-mode']);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user