Skip to content

A platform for community discussion. Free, open, simple.

FIX: Route poll CSV export through the download bridge (#43753)

Bannon Tannerc5be12eb1795
diff --git a/plugins/poll/assets/javascripts/discourse/components/poll.gjs b/plugins/poll/assets/javascripts/discourse/components/poll.gjs
index df0dca8c03c..080924b42cc 100644
--- a/plugins/poll/assets/javascripts/discourse/components/poll.gjs
+++ b/plugins/poll/assets/javascripts/discourse/components/poll.gjs
@@ -13,7 +13,7 @@ import { ajax } from "discourse/lib/ajax";
import { popupAjaxError } from "discourse/lib/ajax-error";
import { deferAnonymousAction } from "discourse/lib/anonymous-action";
import { afterRender } from "discourse/lib/decorators";
-import { triggerBlobDownload } from "discourse/lib/download-blob";
+import { deliverBlobDownload } from "discourse/lib/download-blob";
import round from "discourse/lib/round";
import dIcon from "discourse/ui-kit/helpers/d-icon";
import { i18n } from "discourse-i18n";
@@ -891,7 +891,7 @@ export default class PollComponent extends Component {
type: "text/csv;charset=utf-8;",
});
- triggerBlobDownload(blob, {
+ deliverBlobDownload(blob, {
fallbackFilename: `poll-export-${this.poll.name}-${this.post.id}.csv`,
});
})