X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6157280d19ca65b3ff00fd8c1f4dfc94fcbdb64c..3f26761a26f1ebd8746db166be2d30fd9b7ff7d6:/app/assets/javascripts/osm.js.erb 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;