summaryrefslogtreecommitdiff
path: root/web/js/kvm/main.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-12-01 13:08:35 +0300
committerDevaev Maxim <[email protected]>2018-12-01 13:08:35 +0300
commitad6a66ac8fcf7726540f750a6d83e5f80fb0cd71 (patch)
tree4399c5ef84385c90b867c4b6ef769cd68923469b /web/js/kvm/main.js
parenta6d4545bafe750f894654fa3cddbfe15a89e6e6e (diff)
ui -> wm
Diffstat (limited to 'web/js/kvm/main.js')
-rw-r--r--web/js/kvm/main.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/web/js/kvm/main.js b/web/js/kvm/main.js
index fe6b595c..5c6d775a 100644
--- a/web/js/kvm/main.js
+++ b/web/js/kvm/main.js
@@ -1,15 +1,15 @@
-var ui;
+var wm;
function main() {
if (checkBrowser()) {
- ui = new Ui();
+ wm = new WindowManager();
- tools.setOnClick($("show-about-button"), () => ui.showWindow($("about-window")));
- tools.setOnClick($("show-keyboard-button"), () => ui.showWindow($("keyboard-window")));
- tools.setOnClick($("show-stream-button"), () => ui.showWindow($("stream-window")));
+ tools.setOnClick($("show-about-button"), () => wm.showWindow($("about-window")));
+ tools.setOnClick($("show-keyboard-button"), () => wm.showWindow($("keyboard-window")));
+ tools.setOnClick($("show-stream-button"), () => wm.showWindow($("stream-window")));
tools.setOnClick($("open-log-button"), () => window.open("/kvmd/log?seek=3600&follow=1", "_blank"));
- ui.showWindow($("stream-window"));
+ wm.showWindow($("stream-window"));
new Session();
}