X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f5f4bfd72502e4edf9b6e4d76fd012a67f6fa693..d4135390acff291f2f2c15d9fb86723ebf4fe755:/app/assets/javascripts/leaflet.share.js diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index b808bc435..bea877e66 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -60,8 +60,8 @@ L.OSM.share = function (options) { } function update() { - $shortLink.attr('href', options.getShortUrl(map)); - $longLink.attr('href', options.getUrl(map)); + $shortLink.attr('href', map.getShortUrl()); + $longLink.attr('href', map.getUrl()); } function select() {