瀏覽代碼

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

master
virtuacoplenny 6 年之前
父節點
當前提交
2b56822a41
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. 6
    0
      index.html

+ 6
- 0
index.html 查看文件

8
     <link rel="stylesheet" href="css/all.css">
8
     <link rel="stylesheet" href="css/all.css">
9
 
9
 
10
     <script>
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
         window.indexLoadedTime = window.performance.now();
17
         window.indexLoadedTime = window.performance.now();
12
         console.log("(TIME) index.html loaded:\t", indexLoadedTime);
18
         console.log("(TIME) index.html loaded:\t", indexLoadedTime);
13
         // XXX the code below listeners for errors and displays an error message
19
         // XXX the code below listeners for errors and displays an error message

Loading…
取消
儲存