@AntonKhorev commented on this pull request.


> +  function stringifyArgs(args) {
+    return new URLSearchParams(args).toString();
+  }
+

Is this function required? You can replace 
```js
OSM.router.route("/directions?" + stringifyArgs({
...
```
with
```js
OSM.router.route("/directions?" + new URLSearchParams({
...
```
and this will work because string coercion runs `toString`.

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

Message ID: 
<openstreetmap/openstreetmap-website/pull/5592/review/2588593...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to