[openstreetmap/openstreetmap-website] Make loadSidebarContent use promises (PR #7226)
Marwin Hochfelsner
notifications at github.com
Tue Jul 14 20:01:35 UTC 2026
@hlfan commented on this pull request.
> const title = response.headers.get("X-Page-Title");
if (title) document.title = decodeURIComponent(title);
Pretty much exactly. You get the in-between response object to not need to download the response fully or change the handling based on the response type (like `text`, `json`, `arrayBuffer` functions).
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7226#discussion_r3582236888
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7226/review/4698090301 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260714/3c38f6e2/attachment.htm>
More information about the rails-dev
mailing list