]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Add default value for parseHash
[rails.git] / app / assets / javascripts / index.js
index 3924316c175739d8f4884fb727a3b44f896e427f..52f8ea5e2711204d7c73507e93c70d16b89ffb91 100644 (file)
@@ -311,7 +311,7 @@ $(function () {
     };
 
     function addObject(type, id, version, center) {
-      const hashParams = OSM.parseHash(location.hash);
+      const hashParams = OSM.parseHash();
       map.addObject({ type: type, id: parseInt(id, 10), version: version && parseInt(version, 10) }, function (bounds) {
         if (!hashParams.center && bounds.isValid() &&
             (center || !map.getBounds().contains(bounds))) {