diff options
Diffstat (limited to 'client/src/index.html')
-rw-r--r-- | client/src/index.html | 15 |
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 | ||