diff --git a/config.template.js b/config.template.js index 568a0ad..6cdd571 100644 --- a/config.template.js +++ b/config.template.js @@ -128,7 +128,4 @@ ]; } - - // Strava API token in case you want to display Strava segments - BR.conf.stravaToken = null; })(); diff --git a/js/index.js b/js/index.js index c0cac38..b9cfbab 100644 --- a/js/index.js +++ b/js/index.js @@ -240,10 +240,10 @@ drawToolbar = L.easyBar([drawButton, nogos.getButton(), deleteButton]).addTo(map); nogos.preventRoutePointOnCreate(routing); - if (BR.conf.stravaToken) { + if (BR.keys.strava) { new L.Control.StravaSegments( { - stravaToken: BR.conf.stravaToken + stravaToken: BR.keys.strava }) .addTo(map); } diff --git a/keys.template.js b/keys.template.js index a2b4e64..7407731 100644 --- a/keys.template.js +++ b/keys.template.js @@ -10,7 +10,10 @@ digitalGlobe: '', // Thunderforest, https://thunderforest.com/pricing/ - thunderforest: '' + thunderforest: '', + + // Strava API token in case you want to display Strava segments + strava: '' }; })();