X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular%2Fapp%2Fapp.component.ts;h=68c9ba0090510fd8d9e3c1c3446e74dec5a4283c;hb=44124980c55d5a5ec7dfb8e71bf14d10f0fe975d;hp=1648b887020df7fcaa73cbdca7a5bc264f902e65;hpb=b1794c53ac97d77a16c10ed915336f08cff1e5e3;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular/app/app.component.ts b/client/angular/app/app.component.ts index 1648b8870..68c9ba009 100644 --- a/client/angular/app/app.component.ts +++ b/client/angular/app/app.component.ts @@ -53,8 +53,11 @@ export class AppComponent { private _authService: AuthService, private _router: Router ) { - if (localStorage.getItem('access_token')) this.isLoggedIn = true; - else this.isLoggedIn = false; + if (localStorage.getItem('access_token')) { + this.isLoggedIn = true; + } else { + this.isLoggedIn = false; + } this._authService.loginChanged$.subscribe( status => { @@ -87,7 +90,7 @@ export class AppComponent { } }, error => alert(error) - ) + ); } quitFriends() { @@ -96,6 +99,6 @@ export class AppComponent { alert('Quit friends!'); }, error => alert(error) - ) + ); } }