X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6157280d19ca65b3ff00fd8c1f4dfc94fcbdb64c..b90d27cdff7893b6e814cc0a93272d193114e81b:/app/assets/javascripts/osm.js.erb?ds=inline diff --git a/app/assets/javascripts/osm.js.erb b/app/assets/javascripts/osm.js.erb index 59d880efc..ad6d5cb9c 100644 --- a/app/assets/javascripts/osm.js.erb +++ b/app/assets/javascripts/osm.js.erb @@ -104,6 +104,9 @@ OSM = { if (hash.indexOf('#') === 0) { hash = hash.substr(1); } + if (hash === '') { + return false; + } hash = querystring.parse(hash); var args = L.Hash.parseHash(hash.map || '') || {}; if (hash.layers) args.layers = hash.layers;