diff options
author | Devaev Maxim <[email protected]> | 2018-12-01 13:08:35 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-12-01 13:08:35 +0300 |
commit | ad6a66ac8fcf7726540f750a6d83e5f80fb0cd71 (patch) | |
tree | 4399c5ef84385c90b867c4b6ef769cd68923469b /web/js/kvm/main.js | |
parent | a6d4545bafe750f894654fa3cddbfe15a89e6e6e (diff) |
ui -> wm
Diffstat (limited to 'web/js/kvm/main.js')
-rw-r--r-- | web/js/kvm/main.js | 12 |
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(); } |