From 4d12b1edd1979ab223658d873ef32b9d9564a6b2 Mon Sep 17 00:00:00 2001 From: pany-ang <939630029@qq.com> Date: Mon, 4 Nov 2024 09:39:31 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20bc0c8?= =?UTF-8?q?f4cc4c539654a296754640bbd0ab6171851=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- detect-ie.js | 5 +++++ index.html | 8 +------- 2 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 detect-ie.js diff --git a/detect-ie.js b/detect-ie.js new file mode 100644 index 00000000..3568e83e --- /dev/null +++ b/detect-ie.js @@ -0,0 +1,5 @@ +// Tip: Simple judgments may not fully cover +if (/MSIE\s|Trident\//.test(window.navigator.userAgent)) { + document.body.innerHTML = + "Sorry, this browser is currently not supported. We recommend using the latest version of a modern browser. For example, Chrome/Firefox/Edge." +} diff --git a/index.html b/index.html index 9b0698b7..87ea8b8e 100644 --- a/index.html +++ b/index.html @@ -6,6 +6,7 @@ V3 Admin Vite + @@ -16,12 +17,5 @@
-