summaryrefslogtreecommitdiff
path: root/web/js/main.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-09-26 02:57:24 +0300
committerDevaev Maxim <[email protected]>2018-09-26 02:57:24 +0300
commit81a5311349564a1016c4af2bf18ae872b650e85b (patch)
treed01fd027948494e22ae2c14334b98c1515e5e8a4 /web/js/main.js
parentf3946f102fc167efdc53c73412b2c0d6ac6c72c5 (diff)
moved kvmd to the root
Diffstat (limited to 'web/js/main.js')
-rw-r--r--web/js/main.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/web/js/main.js b/web/js/main.js
new file mode 100644
index 00000000..211e8525
--- /dev/null
+++ b/web/js/main.js
@@ -0,0 +1,16 @@
+var ui;
+
+function main() {
+ 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 {
+ ui = new Ui();
+ new Session(new Atx(), new Hid(), new Msd());
+ new Stream();
+ }
+}