From 5912693c1af7a6f358563ba1634f9e15c5220fc3 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Thu, 17 Jun 2021 18:40:53 +0300 Subject: make janus-static work for web ui --- web/share/js/kvm/session.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'web/share/js/kvm/session.js') 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) { -- cgit v1.2.3