aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/index.html
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/index.html
parent6a6d92b1ecca1dfcf4b13f291553f2485814f730 (diff)
downloadPeerTube-73e09f270660c78e50e86921a5ca6b356f760c7c.tar.gz
PeerTube-73e09f270660c78e50e86921a5ca6b356f760c7c.tar.zst
PeerTube-73e09f270660c78e50e86921a5ca6b356f760c7c.zip
Try to detect incompatible web browsers
Diffstat (limited to 'client/src/index.html')
-rw-r--r--client/src/index.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/client/src/index.html b/client/src/index.html
index a824a39e2..cd9f76cf9 100644
--- a/client/src/index.html
+++ b/client/src/index.html
@@ -34,6 +34,21 @@
34 </p> 34 </p>
35 </noscript> 35 </noscript>
36 36
37 <div id="incompatible-browser" class="alert alert-danger" style="display: none">
38 <p>We are sorry but it seems that PeerTube is not compatible with your web browser.</p>
39 <p>Please try with the latest version of <a href="https://www.mozilla.org" target="_blank">Mozilla Firefox</a>.</p>
40 <p>If you think this is a mistake, do not hesitate <a href="https://github.com/Chocobozzz/PeerTube/issues/new" target="_blank">to report it</a>.</p>
41 </div>
42
43 <script type="text/javascript">
44 window.onerror = function () {
45 var elem = document.getElementById('incompatible-browser')
46 if (elem.className.indexOf('browser-ok') === -1) {
47 elem.style.display = 'block'
48 }
49 }
50 </script>
51
37 <my-app> 52 <my-app>
38 </my-app> 53 </my-app>
39 54