[openstreetmap/openstreetmap-website] Propagate iD title to parent (PR #5865)

Anton Khorev notifications at github.com
Sun Mar 30 18:04:36 UTC 2025


@AntonKhorev commented on this pull request.



> +      if (!mutations.some(mutation => mutation.target.tagName === "TITLE")) return;
+      const newTitle = `${document.title} | ${firstParentTitle}`;
+      if (parent.document.title === newTitle) return;
+      parent.document.title = newTitle;

```suggestion
      parent.document.title = `${document.title} | ${firstParentTitle}`;
```

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

Message ID: <openstreetmap/openstreetmap-website/pull/5865/review/2727973616 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250330/74630c32/attachment-0001.htm>


More information about the rails-dev mailing list