summaryrefslogtreecommitdiff
path: root/kvmd/web/js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-08-20 07:43:23 +0300
committerDevaev Maxim <[email protected]>2018-08-20 07:43:23 +0300
commita4b6f4fb98200829eba4c93597b7622196a2265c (patch)
tree609e2fc7545e5c36d8b6759134cfcd92d114f5af /kvmd/web/js
parent0d19451bbe86626eb7bf1b59999ce9316b7dec19 (diff)
no ie allowed
Diffstat (limited to 'kvmd/web/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);
+ }
}