Move strava token to keys file (#132)

This commit is contained in:
Norbert Renner 2018-09-28 12:18:52 +02:00
parent eaf0c672b5
commit 5751792b49
3 changed files with 6 additions and 6 deletions

View file

@ -128,7 +128,4 @@
]; ];
} }
// Strava API token in case you want to display Strava segments
BR.conf.stravaToken = null;
})(); })();

View file

@ -240,10 +240,10 @@
drawToolbar = L.easyBar([drawButton, nogos.getButton(), deleteButton]).addTo(map); drawToolbar = L.easyBar([drawButton, nogos.getButton(), deleteButton]).addTo(map);
nogos.preventRoutePointOnCreate(routing); nogos.preventRoutePointOnCreate(routing);
if (BR.conf.stravaToken) { if (BR.keys.strava) {
new L.Control.StravaSegments( new L.Control.StravaSegments(
{ {
stravaToken: BR.conf.stravaToken stravaToken: BR.keys.strava
}) })
.addTo(map); .addTo(map);
} }

View file

@ -10,7 +10,10 @@
digitalGlobe: '', digitalGlobe: '',
// Thunderforest, https://thunderforest.com/pricing/ // Thunderforest, https://thunderforest.com/pricing/
thunderforest: '' thunderforest: '',
// Strava API token in case you want to display Strava segments
strava: ''
}; };
})(); })();