From 5751792b4924d62ff95bf80d2f4afee2e2950287 Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Fri, 28 Sep 2018 12:18:52 +0200 Subject: [PATCH] Move strava token to keys file (#132) --- config.template.js | 3 --- js/index.js | 4 ++-- keys.template.js | 5 ++++- 3 files changed, 6 insertions(+), 6 deletions(-) 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: '' }; })();