From e71cd0152246ea843c7844aad7b57257f2e64729 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Thu, 17 Jun 2021 14:57:24 +0200 Subject: [PATCH] always update to ensure removal of old state --- htdocs/lib/MetaPanel.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/lib/MetaPanel.js b/htdocs/lib/MetaPanel.js index e9cd2a0..7414998 100644 --- a/htdocs/lib/MetaPanel.js +++ b/htdocs/lib/MetaPanel.js @@ -279,10 +279,9 @@ NxdnMetaPanel.prototype.setDestination = function(destination) { NxdnMetaPanel.prototype.setMode = function(mode) { if (this.mode === mode) return; - var modes = ['individual', 'conference']; - if (modes.indexOf(mode) < 0) return; - this.mode = mode; + + var modes = ['individual', 'conference']; var classes = modes.filter(function(c){ return c !== mode; });