X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a566589c1becb18ad2d12623d0ff240ea279d8e6..ee4c34172f0a0145344525962cc5411a7f260ff5:/app/assets/javascripts/edit/id.js.erb diff --git a/app/assets/javascripts/edit/id.js.erb b/app/assets/javascripts/edit/id.js.erb index 02299d215..6a68b6b2d 100644 --- a/app/assets/javascripts/edit/id.js.erb +++ b/app/assets/javascripts/edit/id.js.erb @@ -4,7 +4,8 @@ $(document).ready(function () { var id = $("#id-embed"); if (id.data("configured") === true) { - var hashParams = OSM.params(location.hash.substring(1)); + var hash = location.hash.substring(1); + var hashParams = hash ? OSM.params(hash) : {}; var mapParams = OSM.mapParams(); var params = {};