aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/index.html')
-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>