summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/stream.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/share/js/kvm/stream.js')
-rw-r--r--web/share/js/kvm/stream.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js
index 504c7086..b436c093 100644
--- a/web/share/js/kvm/stream.js
+++ b/web/share/js/kvm/stream.js
@@ -138,17 +138,17 @@ export function Streamer() {
if (!__state) {
__state = {};
}
- if (state.features) {
+ if (state.features !== undefined) {
__state.features = state.features;
__state.limits = state.limits; // Following together with features
}
- if (__state.features && state.streamer !== undefined) {
- __setControlsEnabled(!!state.streamer);
+ if (__state.features !== undefined && state.streamer !== undefined) {
__state.streamer = state.streamer;
+ __setControlsEnabled(!!state.streamer);
}
} else {
- __setControlsEnabled(false);
__state = null;
+ __setControlsEnabled(false);
}
let visible = wm.isWindowVisible($("stream-window"));
__applyState((visible && __state && __state.features) ? state : null);