]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/app.component.ts
Change video abuse API response
[github/Chocobozzz/PeerTube.git] / client / src / app / app.component.ts
index 346e966e5189f665ec14aabd9b08f8c89fa1f60c..84435b5dbddcfddc2ab03228bc3b3adcb859c7b9 100644 (file)
@@ -44,7 +44,10 @@ export class AppComponent implements OnInit {
   }
 
   ngOnInit () {
-    if (this.router.url === '/') {
+    document.getElementById('incompatible-browser').className += ' browser-ok'
+
+    const pathname = window.location.pathname
+    if (!pathname || pathname === '/') {
       this.redirectService.redirectToHomepage()
     }