]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/osm.js.erb
Test for the map argument correctly
[rails.git] / app / assets / javascripts / osm.js.erb
index 392bf5e0c65254de7c3009d8d2c008807ef288c7..d350b28969ccc020e3e403fd259da648c1bdebcf 100644 (file)
@@ -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;