From 0d931860667f7c700b60b863e2dff802b2095459 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Thu, 26 Mar 2020 15:36:49 +0100 Subject: [PATCH] drop the passed modulation if the frequency is invalid --- htdocs/openwebrx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/openwebrx.js b/htdocs/openwebrx.js index c9d06d7..0f8540a 100644 --- a/htdocs/openwebrx.js +++ b/htdocs/openwebrx.js @@ -1520,8 +1520,8 @@ function parseHash() { function validateHash() { var params = parseHash(); params = Object.keys(params).filter(function(key) { - if (key == 'freq') { - return Math.abs(params[key] - center_freq) < bandwidth; + if (key == 'freq' || key == 'mod') { + return params.freq && Math.abs(params.freq - center_freq) < bandwidth; } return true; }).reduce(function(p, key) {