Don't throw an exception if the hash doesn't contain a map argument
This commit is contained in:
parent
315d1dab54
commit
a2b9f593f5
1 changed files with 4 additions and 0 deletions
|
@ -115,6 +115,10 @@ OSM = {
|
||||||
|
|
||||||
hash = querystring.parse(hash);
|
hash = querystring.parse(hash);
|
||||||
|
|
||||||
|
if (!(map in hash)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var args = hash.map.split("/");
|
var args = hash.map.split("/");
|
||||||
if (args.length !== 3) {
|
if (args.length !== 3) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue