Skip to content

Commit 0b87913

Browse files
bonchanhaslinghuis
andauthored
Update js/webworkers/gpx-export-worker.js: proper declaration of loop variables
Co-authored-by: haslinghuis <[email protected]>
1 parent 2dc930f commit 0b87913

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/webworkers/gpx-export-worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ onmessage = function (event) {
2323
const numSatIndex = event.data.fieldNames.indexOf("GPS_numSat");
2424

2525
let trkpts = "";
26-
for (var chunk of event.data.frames) {
27-
for (var frame of chunk) {
26+
for (const chunk of event.data.frames) {
27+
for (const frame of chunk) {
2828
if (!frame[latIndex] || !frame[lngIndex]) continue;
2929
const timeMillis = Math.floor(frame[timeIndex] / 1000);
3030
const lat = frame[latIndex] / 10000000;

0 commit comments

Comments
 (0)