]> git.openstreetmap.org Git - rails.git/commitdiff
Merge pull request #4120 from AntonKhorev/no-deprecated-iframe-attrs
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 2 Aug 2023 13:14:55 +0000 (14:14 +0100)
committerGitHub <noreply@github.com>
Wed, 2 Aug 2023 13:14:55 +0000 (14:14 +0100)
Remove deprecated attributes from share html

app/assets/javascripts/leaflet.share.js

index 73ca64f634f0e351751d31127e12f0b4b448d88c..7b1c995c2d1a45fe03cc6fe9e6fe3dffcd13f620 100644 (file)
@@ -316,7 +316,7 @@ L.OSM.share = function (options) {
       }
 
       $("#embed_html").val(
-        "<iframe width=\"425\" height=\"350\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"" +
+        "<iframe width=\"425\" height=\"350\" src=\"" +
           escapeHTML(OSM.SERVER_PROTOCOL + "://" + OSM.SERVER_URL + "/export/embed.html?" + $.param(params)) +
           "\" style=\"border: 1px solid black\"></iframe><br/>" +
           "<small><a href=\"" + escapeHTML(map.getUrl(marker)) + "\">" +