aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-24 11:55:42 +0200
committerChocobozzz <me@florianbigard.com>2020-08-24 11:55:42 +0200
commit6c733e46174c3f5b185402f9d37c88175543cf3c (patch)
tree8bbca2967928e50895fd20373e7de33e3c5c37d3 /client/src
parentb0ce7c39dce4be8d7c2775e8205f8abfe348a0de (diff)
downloadPeerTube-6c733e46174c3f5b185402f9d37c88175543cf3c.tar.gz
PeerTube-6c733e46174c3f5b185402f9d37c88175543cf3c.tar.zst
PeerTube-6c733e46174c3f5b185402f9d37c88175543cf3c.zip
We don't support IE
Diffstat (limited to 'client/src')
-rw-r--r--client/src/index.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/client/src/index.html b/client/src/index.html
index e5d1569aa..1136ecdaf 100644
--- a/client/src/index.html
+++ b/client/src/index.html
@@ -49,12 +49,20 @@
49 </div> 49 </div>
50 50
51 <script type="text/javascript"> 51 <script type="text/javascript">
52 window.onerror = function () { 52 function displayIncompatibleBrowser () {
53 var elem = document.getElementById('incompatible-browser') 53 var elem = document.getElementById('incompatible-browser')
54 if (elem.className.indexOf('browser-ok') === -1) { 54 if (elem.className.indexOf('browser-ok') === -1) {
55 elem.style.display = 'block' 55 elem.style.display = 'block'
56 } 56 }
57 } 57 }
58
59 window.onerror = function () {
60 displayIncompatibleBrowser()
61 }
62
63 if (/MSIE|Trident/.test(window.navigator.userAgent) ) {
64 displayIncompatibleBrowser()
65 }
58 </script> 66 </script>
59 67
60 <my-app> 68 <my-app>