Make privacy policy URL configurable (#284)
This commit is contained in:
parent
01e7fd7144
commit
e5e876f717
5 changed files with 11 additions and 4 deletions
|
|
@ -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(
|
||||
'© <a target="_blank" href="https://www.openstreetmap.org/copyright">' +
|
||||
osmAttribution +
|
||||
|
|
@ -40,7 +41,9 @@ BR.Map = {
|
|||
' · <a href="" data-toggle="modal" data-target="#credits">' +
|
||||
i18next.t('map.copyright') +
|
||||
'</a>' +
|
||||
' · <a target="_blank" href="https://brouter.de/privacypolicy.html">' +
|
||||
' · <a target="_blank" href="' +
|
||||
privacyPolicyUrl +
|
||||
'">' +
|
||||
i18next.t('map.privacy') +
|
||||
'</a>'
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue