Move strava token to keys file (#132)
This commit is contained in:
parent
eaf0c672b5
commit
5751792b49
3 changed files with 6 additions and 6 deletions
|
|
@ -128,7 +128,4 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Strava API token in case you want to display Strava segments
|
|
||||||
BR.conf.stravaToken = null;
|
|
||||||
})();
|
})();
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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: ''
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue