From: Tom Hughes Date: Wed, 10 May 2017 08:14:09 +0000 (+0100) Subject: Parse asset map JSON before passing it to iD X-Git-Tag: live~3428 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/cb79ce2833c56ef838eb94560de8506857d21018 Parse asset map JSON before passing it to iD --- diff --git a/app/assets/javascripts/id.js b/app/assets/javascripts/id.js index b54532af2..dd7cd3325 100644 --- a/app/assets/javascripts/id.js +++ b/app/assets/javascripts/id.js @@ -14,7 +14,7 @@ document.addEventListener("DOMContentLoaded", function() { var id = iD.Context() .embed(true) .assetPath("iD/") - .assetMap(container.dataset.assetMap) + .assetMap(JSON.parse(container.dataset.assetMap)) .locale(container.dataset.locale, container.dataset.localePath) .preauth({ urlroot: location.protocol + "//" + location.host,