mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-04 14:08:38 +00:00
check for numbers properly
This commit is contained in:
parent
400ba1e346
commit
50e55689f3
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ Envelope.prototype.draw = function(visible_range){
|
|||
|
||||
var from = center_freq + this.demodulator.offset_frequency;
|
||||
var to = center_freq + this.demodulator.offset_frequency;
|
||||
var fake_indicator = !this.demodulator.low_cut || !this.demodulator.high_cut;
|
||||
var fake_indicator = typeof(this.demodulator.low_cut) !== 'number' || typeof(this.demodulator.high_cut) !== 'number';
|
||||
if (fake_indicator) {
|
||||
// fake values just so that the tuning indicator shows up
|
||||
var fixedBw = 100000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue