From ceafcbf8506d336cedfa3f3e48f814eca0928523 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Wed, 6 May 2020 23:00:57 +0200 Subject: [PATCH] fix secondary demod being false --- htdocs/lib/DemodulatorPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/lib/DemodulatorPanel.js b/htdocs/lib/DemodulatorPanel.js index a0506a1..40894e2 100644 --- a/htdocs/lib/DemodulatorPanel.js +++ b/htdocs/lib/DemodulatorPanel.js @@ -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;