X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bcf5782fb5a3a916ea036ce78ecd2a1208ace87f..7c3c9618eae9e8d8fdb293b8b82fc1d9ef7752d5:/app/assets/javascripts/leaflet.key.js diff --git a/app/assets/javascripts/leaflet.key.js b/app/assets/javascripts/leaflet.key.js index 937d9b052..45d22feed 100644 --- a/app/assets/javascripts/leaflet.key.js +++ b/app/assets/javascripts/leaflet.key.js @@ -16,7 +16,10 @@ L.OSM.key = function (options) { function shown() { map.on("zoomend baselayerchange", update); - $section.load("/key", update); + fetch("/key") + .then(r => r.text()) + .then(html => { $section.html(html); }) + .then(update); } function hidden() {