[openstreetmap/openstreetmap-website] Add reload on iframe redirect (adb034d)

Martin Raifer notifications at github.com
Wed Apr 9 14:07:44 UTC 2025


I get a `Uncaught TypeError: this.contentWindow is undefined` error every time I regularly start an iD editing session. Is that expected? Would it not be better to skip the check if everything is loaded correctly, maybe like this:

```js
if (this.contentWindow && !this.contentWindow.location.href.startsWith(idData.url)) {
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/commit/adb034d26e6f465d07c75a2fcfd3477c38539c4f#r155069344
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/commit/adb034d26e6f465d07c75a2fcfd3477c38539c4f/155069344 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250409/8df677ad/attachment.htm>


More information about the rails-dev mailing list