aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-08 12:01:55 +0100
committerChocobozzz <me@florianbigard.com>2018-03-08 12:01:55 +0100
commit73e09f270660c78e50e86921a5ca6b356f760c7c (patch)
treefc12bdd72840715f2a5e0ffba480b60c4bc2b7fb /client/src/app/app.component.ts
parent6a6d92b1ecca1dfcf4b13f291553f2485814f730 (diff)
downloadPeerTube-73e09f270660c78e50e86921a5ca6b356f760c7c.tar.gz
PeerTube-73e09f270660c78e50e86921a5ca6b356f760c7c.tar.zst
PeerTube-73e09f270660c78e50e86921a5ca6b356f760c7c.zip
Try to detect incompatible web browsers
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r--client/src/app/app.component.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index f95103365..5d8e8badf 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -44,6 +44,8 @@ export class AppComponent implements OnInit {
44 } 44 }
45 45
46 ngOnInit () { 46 ngOnInit () {
47 document.getElementById('incompatible-browser').className += 'browser-ok'
48
47 const pathname = window.location.pathname 49 const pathname = window.location.pathname
48 if (!pathname || pathname === '/') { 50 if (!pathname || pathname === '/') {
49 this.redirectService.redirectToHomepage() 51 this.redirectService.redirectToHomepage()