From 8a66a816f77b33f8eb526f78915a5046e630aded Mon Sep 17 00:00:00 2001 From: Henrik Fehlauer Date: Thu, 18 Jun 2020 18:00:00 +0000 Subject: [PATCH] Run `yarn lint`, `yarn prettier` and `yarn build i18next` 0d6cd61 was still missing some style fixes, making `yarn` touch unrelated files on a subsequent `git commit`. --- js/index.js | 2 +- js/plugin/RouteLoaderConverter.js | 2 +- locales/en.json | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/js/index.js b/js/index.js index 069bc4b..cc19ee7 100644 --- a/js/index.js +++ b/js/index.js @@ -305,7 +305,7 @@ BR.tracksLoader(map, layersControl, routing); - BR.routeLoader(map, layersControl, routing,pois); + BR.routeLoader(map, layersControl, routing, pois); pois.addTo(map); routingPathQuality.addTo(map); diff --git a/js/plugin/RouteLoaderConverter.js b/js/plugin/RouteLoaderConverter.js index 201bd9f..ce3c278 100644 --- a/js/plugin/RouteLoaderConverter.js +++ b/js/plugin/RouteLoaderConverter.js @@ -250,7 +250,7 @@ BR.routeLoader = function(map, layersControl, routing, pois) { if (!this._options.format) this._options.format = trackFile.name.split('.').pop(); - const reader = new FileReader(); + var reader = new FileReader(); reader.onload = L.bind(this.processFile, this); reader.readAsText(trackFile); diff --git a/locales/en.json b/locales/en.json index 56573bf..da76e6e 100644 --- a/locales/en.json +++ b/locales/en.json @@ -249,7 +249,6 @@ "explainpoi": "(show waypoints as POI's)", "explaintracklayer": "(show Track as separate Layer)", "file": "Trackfile", - "fromext": "from file extension", "fuzziness": "fuzzines", "pleasewait": "Please wait!", "showpois": "POI's",