Fix parsing of transmitter frequencies in javascript
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>spacecruft
parent
fb4a514693
commit
04b0605e09
|
@ -5,7 +5,8 @@ function ppb_to_freq(freq, drift) {
|
||||||
return Math.round(freq_obs);
|
return Math.round(freq_obs);
|
||||||
}
|
}
|
||||||
|
|
||||||
function format_freq(frequency) {
|
function format_freq(frequency_string) {
|
||||||
|
var frequency = Number(frequency_string);
|
||||||
if (isNaN(frequency) || frequency == ''){
|
if (isNaN(frequency) || frequency == ''){
|
||||||
return 'None';
|
return 'None';
|
||||||
} else if (frequency < 1000) {
|
} else if (frequency < 1000) {
|
||||||
|
|
Loading…
Reference in New Issue