]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/index.html
Avoid 404 when changing language
[github/Chocobozzz/PeerTube.git] / client / src / index.html
index e5d1569aae00bb160108db20fd353cdb607734f1..1136ecdaf6854667bf7030feafa66accf1dea731 100644 (file)
     </div>
 
     <script type="text/javascript">
-      window.onerror = function () {
+      function displayIncompatibleBrowser () {
         var elem = document.getElementById('incompatible-browser')
         if (elem.className.indexOf('browser-ok') === -1) {
           elem.style.display = 'block'
         }
       }
+
+      window.onerror = function () {
+        displayIncompatibleBrowser()
+      }
+
+      if (/MSIE|Trident/.test(window.navigator.userAgent) ) {
+        displayIncompatibleBrowser()
+      }
     </script>
 
     <my-app>