X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a566589c1becb18ad2d12623d0ff240ea279d8e6..225b260640a0c17f3ae408c70987618ceb07fa0d:/app/assets/javascripts/edit/id.js.erb?ds=inline 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 = {};