]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/app.component.ts
Fix exception when getting 404 in video watch
[github/Chocobozzz/PeerTube.git] / client / src / app / app.component.ts
index a90654e269dc4f0958c43b4326f643e86a3ca86a..ae86bc96f035bf2baea5ee669bef5504aed8d74c 100644 (file)
@@ -31,11 +31,12 @@ export class AppComponent implements OnInit {
     private authService: AuthService,
     private configService: ConfigService,
     private userService: UserService,
-    private videoService: VideoService,
-    viewContainerRef: ViewContainerRef
+    private videoService: VideoService
   ) {}
 
   ngOnInit () {
+    this.authService.loadClientCredentials()
+
     if (this.authService.isLoggedIn()) {
       // The service will automatically redirect to the login page if the token is not valid anymore
       this.userService.checkTokenValidity()