@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 could not quite get the turbofetch thingy to work correctly, but putting this 
behind one of these controller-vew-route-abilitys seems to work.

Honestly, not what I would call user friendly or simple, but if you like it 
better, I am fine with it.

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

Message ID: 
<openstreetmap/openstreetmap-website/pull/6782/review/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to