Skip to content

Commit b65c184

Browse files
committed
Code improvement: Use Number.parseInt
1 parent 1408e9c commit b65c184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graph_spectrum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export function FlightLogAnalyser(flightLog, canvas, analyserCanvas) {
335335
"input",
336336
function () {
337337
// Recalculate PSD with updated samples per segment count
338-
GraphSpectrumCalc.setPointsPerSegmentPSD(2 ** parseInt($(this).val()));
338+
GraphSpectrumCalc.setPointsPerSegmentPSD(2 ** Number.parseInt($(this).val()));
339339
dataLoad();
340340
GraphSpectrumPlot.setData(fftData, userSettings.spectrumType);
341341
that.refresh();

0 commit comments

Comments
 (0)