@hlfan commented on this pull request.


> @@ -52,7 +52,20 @@
         }
       };
     }
+
+    static getHtmlResponseHandler(event) {
+      const response = event.detail.fetchResponse.response;
+      const contentType = response.headers.get("content-type");
+
+      if (!response.ok && contentType?.includes("text/html")) {
+        // Prevent Turbo from replacing the current page with an error HTML 
response
+        // from the image export endpoint

```suggestion
        // from the export endpoint
```

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

Message ID: 
<openstreetmap/openstreetmap-website/pull/6284/review/3082077...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to