Don't throw an exception if the hash doesn't contain a map argument

This commit is contained in:
Tom Hughes 2013-11-30 13:20:31 +00:00
parent 315d1dab54
commit a2b9f593f5

View file

@ -115,6 +115,10 @@ OSM = {
hash = querystring.parse(hash);
if (!(map in hash)) {
return false;
}
var args = hash.map.split("/");
if (args.length !== 3) {
return false;