Files
new-school-iot-admin/public/detect-ie.js
T
2026-10-26 18:54:09 +08:00

5 lines
287 B
JavaScript

// Tip: Simple judgments may not fully cover
if (/MSIE\s|Trident\//.test(navigator.userAgent)) {
document.body.innerHTML = "<strong>Sorry, this browser is currently not supported. We recommend using the latest version of a modern browser. For example, Chrome/Firefox/Edge.</strong>"
}