Make privacy policy URL configurable (#284)

This commit is contained in:
Norbert Renner 2020-05-28 10:04:16 +02:00
parent 01e7fd7144
commit e5e876f717
5 changed files with 11 additions and 4 deletions

View file

@ -33,6 +33,7 @@ BR.Map = {
$(map.getContainer()).outerWidth() >= 400
? i18next.t('map.attribution-osm-long')
: i18next.t('map.attribution-osm-short');
var privacyPolicyUrl = BR.conf.privacyPolicyUrl || 'https://brouter.de/privacypolicy.html';
map.attributionControl.setPrefix(
'&copy; <a target="_blank" href="https://www.openstreetmap.org/copyright">' +
osmAttribution +
@ -40,7 +41,9 @@ BR.Map = {
' &middot; <a href="" data-toggle="modal" data-target="#credits">' +
i18next.t('map.copyright') +
'</a>' +
' &middot; <a target="_blank" href="https://brouter.de/privacypolicy.html">' +
' &middot; <a target="_blank" href="' +
privacyPolicyUrl +
'">' +
i18next.t('map.privacy') +
'</a>'
);