diff --git a/index.html b/index.html index 8a4e2eb..ac99fbd 100644 --- a/index.html +++ b/index.html @@ -6,18 +6,12 @@ %VITE_APP_TITLE% +
- diff --git a/public/detect-ie.js b/public/detect-ie.js new file mode 100644 index 0000000..3568e83 --- /dev/null +++ b/public/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." +}