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
1 changed files with 2 additions and 3 deletions

View File

@ -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;
});