[openstreetmap/openstreetmap-website] Add PWA geo protocol handler (PR #5736)
Marwin Hochfelsner
notifications at github.com
Sat Mar 1 13:26:05 UTC 2025
@hlfan commented on this pull request.
> @@ -80,6 +80,11 @@ OSM = {
const hash = OSM.parseHash(location.hash);
+ const geoURI = Object.fromEntries(new URLSearchParams(
+ params.geouri?.replaceAll(/[?;]/g, "&")?.replace(":", "=")
Also, the URL constructor throws a TypeError when no URI is given, instead of returning empty, which is what the current variant does without needing extra conditions
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5736#discussion_r1976407509
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5736/review/2652415167 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250301/1a697f67/attachment-0001.htm>
More information about the rails-dev
mailing list