fix secondary demod being false

This commit is contained in:
Jakob Ketterl 2020-05-06 23:00:57 +02:00
parent 7fbd024ed5
commit ceafcbf850

View File

@ -299,7 +299,7 @@ DemodulatorPanel.prototype.updateHash = function() {
secondary_mod: demod.get_secondary_demod(),
sql: demod.getSquelch(),
}, function(value, key){
if (typeof(value) === 'undefined') return undefined;
if (typeof(value) === 'undefined' || value === false) return undefined;
return key + '=' + value;
}).filter(function(v) {
return !!v;