]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Use search params without objectification
[rails.git] / app / assets / javascripts / index.js
index 52f8ea5e2711204d7c73507e93c70d16b89ffb91..b3ec71b9266f69d73bebfa57673bf36c97c9f289 100644 (file)
@@ -261,7 +261,7 @@ $(function () {
     e.preventDefault();
   });
 
-  if (OSM.params().edit_help) {
+  if (new URLSearchParams(location.search).get("edit_help")) {
     $("#editanchor")
       .removeAttr("title")
       .tooltip({