Merge remote-tracking branch 'upstream/pull/4331'

This commit is contained in:
Tom Hughes 2023-11-08 18:22:50 +00:00
commit f5c5aacb20
56 changed files with 747 additions and 670 deletions

View file

@ -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
});