Preserve protocol in standard links

This commit is contained in:
Tom Hughes 2017-02-18 12:18:34 +00:00
parent 77fee91785
commit b170c06d5c

View file

@ -107,7 +107,7 @@ L.OSM.Map = L.Map.extend({
params.mlon = latLng.lng.toFixed(precision); params.mlon = latLng.lng.toFixed(precision);
} }
var url = 'http://' + OSM.SERVER_URL + '/', var url = window.location.protocol + '://' + OSM.SERVER_URL + '/',
query = querystring.stringify(params), query = querystring.stringify(params),
hash = OSM.formatHash(this); hash = OSM.formatHash(this);