diff options
author | Maxim Devaev <[email protected]> | 2024-11-07 00:31:08 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-11-07 00:34:24 +0200 |
commit | e9e7f9bd0553b77a993f560d64ec814f520852fb (patch) | |
tree | 7ccdd481787f467108f4c5c518765acdda9b3a61 /web/share/js/kvm/main.js | |
parent | f1503d69e0b15caa5d8fd0f4fb30b91d516db2ea (diff) |
pikvm/pikvm#1341: Web: Switch to maximize tab by default
Diffstat (limited to 'web/share/js/kvm/main.js')
-rw-r--r-- | web/share/js/kvm/main.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/web/share/js/kvm/main.js b/web/share/js/kvm/main.js index e32992a9..c71e7fd6 100644 --- a/web/share/js/kvm/main.js +++ b/web/share/js/kvm/main.js @@ -50,9 +50,14 @@ export function main() { tools.el.setOnClick($("open-log-button"), () => window.open("/api/log?seek=3600&follow=1", "_blank")); - if (tools.config.getBool("kvm--full-tab-stream", false)) { - wm.toggleFullTabWindow($("stream-window"), true); + tools.storage.bindSimpleSwitch( + $("page-full-tab-stream-switch"), + "page.full_tab_stream", + tools.config.getBool("kvm--full-tab-stream", false)); + if ($("page-full-tab-stream-switch").checked) { + wm.setFullTabWindow($("stream-window"), true); } + wm.showWindow($("stream-window")); new Session(); |