X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a3b5c85497a6991016a60d8d0749336272d4a7a3..0b7435ab32b3271ae000894f6798cc087b3c058c:/app/assets/javascripts/id.js?ds=sidebyside diff --git a/app/assets/javascripts/id.js b/app/assets/javascripts/id.js index 2d0d01a6f..8c0a061dd 100644 --- a/app/assets/javascripts/id.js +++ b/app/assets/javascripts/id.js @@ -13,8 +13,10 @@ document.addEventListener("DOMContentLoaded", function () { } else { var idContext = iD.coreContext(); idContext.connection().apiConnections([]); + var url = location.protocol + "//" + location.host; idContext.preauth({ - url: location.protocol + "//" + location.host, + url: url, + apiUrl: url === "https://www.openstreetmap.org" ? "https://api.openstreetmap.org" : url, access_token: container.dataset.token });