[openstreetmap/openstreetmap-website] Replace qs with URLSearchParams (PR #5592)

Holger Jeromin notifications at github.com
Sun Feb 2 14:26:58 UTC 2025


@HolgerJeromin commented on this pull request.



> @@ -45,34 +44,34 @@
  */
 window.updateLinks = function (loc, zoom, layers, object) {
   $(".geolink").each(function (index, link) {
-    var href = link.href.split(/[?#]/)[0],
-        args = Qs.parse(link.search.substring(1)),
-        editlink = $(link).hasClass("editlink");
+    let href = link.href.split(/[?#]/)[0];

I thought the general goal was to replace complex code with modern APIs.
If this is an external library or own code is for me not important. 
Do what you want in this PR.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5592#discussion_r1938504500
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5592/review/2588566405 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250202/85e177a4/attachment.htm>


More information about the rails-dev mailing list