diff --git a/index.js b/index.js index eeb5119..1ae1cd5 100644 --- a/index.js +++ b/index.js @@ -772,7 +772,7 @@ document.addEventListener("DOMContentLoaded", function () { let n = "Bearer " + localStorage.getItem("openstreetmap_token"); // get osm account username - fetch("https://www.openstreetmap.org/api/0.6/user/details", { + fetch("https://api.openstreetmap.org/api/0.6/user/details", { headers: { Authorization: n, }, @@ -3248,4 +3248,4 @@ document.addEventListener("DOMContentLoaded", function () { window.PrintControl = new L.Control.BigImage().addTo(map) -}); \ No newline at end of file +});