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() {
button
.toggleClass("disabled", disabled)
.attr("data-bs-original-title",
- I18n.t(disabled ?
+ OSM.i18n.t(disabled ?
"javascripts.key.tooltip_disabled" :
"javascripts.key.tooltip"));
}