X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c441a4dc15f2de78e6c43a51a850b394a25aa5a9..efc65b86a23032e7867314082f80e1da3654b51a:/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() {