mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-30 17:41:54 +08:00
pikvm/pikvm#1341: Web: Switch to maximize tab by default
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user