From 31909beac3dcd8a69a1761b0bd6f7529dded95f3 Mon Sep 17 00:00:00 2001 From: Harvey Date: Mon, 6 Dec 2021 10:40:09 +0800 Subject: [PATCH] remove ie.html --- docs/assets/js/common.js | 5 ++--- docs/ie.html | 45 ---------------------------------------- docs/index.html | 1 - 3 files changed, 2 insertions(+), 49 deletions(-) delete mode 100644 docs/ie.html diff --git a/docs/assets/js/common.js b/docs/assets/js/common.js index 26aac5ac4..e6f8414e0 100644 --- a/docs/assets/js/common.js +++ b/docs/assets/js/common.js @@ -1,7 +1,7 @@ (function () { var userAgent = window.navigator.userAgent; var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent); - var isIE = userAgent.indexOf('MSIE ') > -1; + var isIE = /MSIE|Trident/.test(userAgent); if (isMobile) { window.location.href = './mobile.html'; @@ -9,8 +9,7 @@ } if (isIE) { - window.location.href = './ie.html'; - return; + new VConsole(); } var $codeMirror = document.querySelector('.codeMirrorWrap'); diff --git a/docs/ie.html b/docs/ie.html deleted file mode 100644 index 23c7af804..000000000 --- a/docs/ie.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - Artplayer.js - - - - - - - - - - -
-
-
- - - - - - - - - - - - \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index d5489d89a..660ad9cc2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -77,7 +77,6 @@