summaryrefslogtreecommitdiff
path: root/web/share
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-06-17 18:40:53 +0300
committerDevaev Maxim <[email protected]>2021-06-17 18:40:53 +0300
commit5912693c1af7a6f358563ba1634f9e15c5220fc3 (patch)
tree4f5338c1d872d4fc28454aa876e87e6abcca146e /web/share
parente6a5d5648f093139e98a7e71abcaa43ad3234d00 (diff)
make janus-static work for web ui
Diffstat (limited to 'web/share')
-rw-r--r--web/share/js/kvm/session.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/share/js/kvm/session.js b/web/share/js/kvm/session.js
index b8fee992..3a0b501c 100644
--- a/web/share/js/kvm/session.js
+++ b/web/share/js/kvm/session.js
@@ -126,7 +126,10 @@ export function Session() {
$("webterm-window").show_hook = show_hook;
$("webterm-window").close_hook = close_hook;
- __streamer.setJanusEnabled(state.janus && (state.janus.enabled || state.janus.started));
+ __streamer.setJanusEnabled(
+ (state.janus && (state.janus.enabled || state.janus.started))
+ || (state.janus_static && (state.janus_static.enabled || state.janus_static.started))
+ );
};
var __formatTemp = function(temp) {