diff options
author | Devaev Maxim <[email protected]> | 2018-08-20 07:43:23 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-08-20 07:43:23 +0300 |
commit | a4b6f4fb98200829eba4c93597b7622196a2265c (patch) | |
tree | 609e2fc7545e5c36d8b6759134cfcd92d114f5af /kvmd/web/js | |
parent | 0d19451bbe86626eb7bf1b59999ce9316b7dec19 (diff) |
no ie allowed
Diffstat (limited to 'kvmd/web/js')
-rw-r--r-- | kvmd/web/js/main.js | 17 |
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); + } } |