always update to ensure removal of old state

This commit is contained in:
Jakob Ketterl 2021-06-17 14:57:24 +02:00
parent 2ecefcecd5
commit e71cd01522

View File

@ -279,10 +279,9 @@ NxdnMetaPanel.prototype.setDestination = function(destination) {
NxdnMetaPanel.prototype.setMode = function(mode) { NxdnMetaPanel.prototype.setMode = function(mode) {
if (this.mode === mode) return; if (this.mode === mode) return;
var modes = ['individual', 'conference'];
if (modes.indexOf(mode) < 0) return;
this.mode = mode; this.mode = mode;
var modes = ['individual', 'conference'];
var classes = modes.filter(function(c){ var classes = modes.filter(function(c){
return c !== mode; return c !== mode;
}); });