X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/415f6a42c75fda8fbea99fe63ad46dc6ee614d8c..248d0b863cde44881574ef01b974afeb2cad12e9:/app/assets/javascripts/osm.js.erb?ds=sidebyside diff --git a/app/assets/javascripts/osm.js.erb b/app/assets/javascripts/osm.js.erb index 392bf5e0c..d350b2896 100644 --- a/app/assets/javascripts/osm.js.erb +++ b/app/assets/javascripts/osm.js.erb @@ -115,6 +115,10 @@ OSM = { hash = querystring.parse(hash); + if (hash.map === undefined) { + return false; + } + var args = hash.map.split("/"); if (args.length !== 3) { return false;