]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/edit/id.js.erb
Don't show unredacted element versions to non-moderators
[rails.git] / app / assets / javascripts / edit / id.js.erb
index 02299d2151b4c53a7d28b8e089344c50e629cd99..6a68b6b2d9b8be13a8b08819753ce8a890da98d2 100644 (file)
@@ -4,7 +4,8 @@ $(document).ready(function () {
   var id = $("#id-embed");
 
   if (id.data("configured") === true) {
-    var hashParams = OSM.params(location.hash.substring(1));
+    var hash = location.hash.substring(1);
+    var hashParams = hash ? OSM.params(hash) : {};
     var mapParams = OSM.mapParams();
     var params = {};