summaryrefslogtreecommitdiff
path: root/web/js/kvm/main.js
diff options
context:
space:
mode:
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();
}