[openstreetmap/openstreetmap-website] Add Human facing error messages when users without WebGL use (PR #6782)
Frank Elsinga
notifications at github.com
Mon Feb 23 19:48:06 UTC 2026
@CommanderStorm commented on this pull request.
> + fetch("/panes/maplibre/webgl_error")
+ .then(response => response.text())
+ .then(html => {
+ containerElement.innerHTML = html;
+ })
+ .catch(() => containerElement.innerHTML = OSM.i18n.t("javascripts.map.webgl_error.webgl_is_required_for_this_map"));
I have no clue, since it just does not do anyhting.
Below does do the fetch correctly, but does not do the replacing of the `innerHTML`.
There is no error message or other information to go on and the docs on this are.. not very clear -> https://turbo.hotwired.dev/reference/frames
```ruby
Turbo.fetch("/panes/webgl_error", { frame: container });
```
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6782#discussion_r2842754116
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6782/review/3843169283 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260223/be6e71bf/attachment.htm>
More information about the rails-dev
mailing list