]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/app.component.ts
Fix tokens loading
[github/Chocobozzz/PeerTube.git] / client / src / app / app.component.ts
index 5b0439e6bb30f28e97c0608e6db5ada6ff02efd2..edec3216e83d158b30a0feed45bc3d5fc06cc47a 100644 (file)
@@ -180,7 +180,7 @@ export class AppComponent implements OnInit, AfterViewInit {
 
     eventsObs.pipe(
       filter((e: Event): e is GuardsCheckStart => e instanceof GuardsCheckStart),
-      filter(() => this.screenService.isInSmallView() || !!this.screenService.isInTouchScreen())
+      filter(() => this.screenService.isInSmallView() || this.screenService.isInTouchScreen())
     ).subscribe(() => this.menu.setMenuDisplay(false)) // User clicked on a link in the menu, change the page
   }