Sfoglia il codice sorgente

Fixed IE 11 detection so that support message is correctly shown.

n1474335 7 anni fa
parent
commit
fa938f832f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/web/html/index.html

+ 1 - 1
src/web/html/index.html

@@ -118,7 +118,7 @@
                     <span id="notice">
                         <script type="text/javascript">
                             // Must be text/javascript rather than application/javascript otherwise IE won't recognise it...
-                            if (navigator.userAgent && navigator.userAgent.match(/MSIE \d\d?\./)) {
+                            if (navigator.userAgent && navigator.userAgent.match(/Trident/)) {
                                 document.write("Internet Explorer is not supported, please use Firefox or Chrome instead");
                                 alert("Internet Explorer is not supported, please use Firefox or Chrome instead");
                             }