Made wrong underlying demod an error.

This commit is contained in:
Marat Fayzullin 2024-10-28 14:31:05 -04:00
parent 5084e9f715
commit 818b30fc74
1 changed files with 5 additions and 1 deletions

View File

@ -143,8 +143,12 @@ BookmarkBar.prototype.sanitizeBookmark = function(b) {
if (!mode) return "Must have valid modulation."
// check that underlying demodulator is valid
if (!b.underlying || !mode.underlying || mode.underlying.indexOf(b.underlying) < 0)
if (!b.underlying)
b.underlying = '';
else if (!mode.underlying)
return "Must not have underlying modulation.";
else if (mode.underlying.indexOf(b.underlying) < 0)
return "Must have valid underlying modulation.";
return null;
};