summaryrefslogtreecommitdiff
path: root/kvmd/web/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/web/js/main.js')
-rw-r--r--kvmd/web/js/main.js17
1 files changed, 13 insertions, 4 deletions
diff --git a/kvmd/web/js/main.js b/kvmd/web/js/main.js
index fecfa2a6..a0008d53 100644
--- a/kvmd/web/js/main.js
+++ b/kvmd/web/js/main.js
@@ -1,6 +1,15 @@
function main() {
- var hid = new Hid();
- var ui = new Ui(hid);
- new Session(new Atx(), hid, new Msd());
- new Stream(ui);
+ if (
+ !window.navigator
+ || window.navigator.userAgent.indexOf("MSIE ") > 0
+ || window.navigator.userAgent.indexOf("Trident/") > 0
+ || window.navigator.userAgent.indexOf("Edge/") > 0
+ ) {
+ $("bad-browser-modal").style.visibility = "visible";
+ } else {
+ var hid = new Hid();
+ var ui = new Ui(hid);
+ new Session(new Atx(), hid, new Msd());
+ new Stream(ui);
+ }
}