Преглед изворни кода

fix(ie11): redirect to recommended browsers page (#3853)

j8
virtuacoplenny пре 6 година
родитељ
комит
2b56822a41
No account linked to committer's email address
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6
    0
      index.html

+ 6
- 0
index.html Прегледај датотеку

@@ -8,6 +8,12 @@
8 8
     <link rel="stylesheet" href="css/all.css">
9 9
 
10 10
     <script>
11
+        // IE11 and earlier can be identified via their user agent and be
12
+        // redirected to a page that is known to have no newer js syntax.
13
+        if (window.navigator.userAgent.match(/(MSIE|Trident)/)) {
14
+            window.location.href = "static/recommendedBrowsers.html";
15
+        }
16
+
11 17
         window.indexLoadedTime = window.performance.now();
12 18
         console.log("(TIME) index.html loaded:\t", indexLoadedTime);
13 19
         // XXX the code below listeners for errors and displays an error message

Loading…
Откажи
Сачувај