[openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)
Anton Khorev
notifications at github.com
Sun Jun 29 14:09:47 UTC 2025
@AntonKhorev commented on this pull request.
> + fetch(OSM.WIKIDATA_URL + "?" + new URLSearchParams({
+ action: "wbgetentities",
+ format: "json",
+ origin: "*",
+ ids: qid,
+ props: "labels|sitelinks|claims|descriptions",
+ languages: langs.join("|"),
+ sitefilter: wikis.join("|")
+ }))
I think we need:
1. Create an abort controller in `page.load`/`pushstate`/`popstate`.
2. Pass its signal to this fetch.
3. Abort in `page.unload`, this will stop all currently running fetches.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6127#pullrequestreview-2969271786
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6127/review/2969271786 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250629/69c75c44/attachment.htm>
More information about the rails-dev
mailing list