Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix plain text export saving (#9230)
Browse files Browse the repository at this point in the history
This tweaks the MIME type of plain text exports so that the browser actually
saves the file.
  • Loading branch information
jryans authored Sep 1, 2022
1 parent c8686b6 commit 380653f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/exportUtils/Exporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default abstract class Exporter {
}

protected downloadPlainText(fileName: string, text: string) {
const content = new Blob([text], { type: "text" });
const content = new Blob([text], { type: "text/plain" });
saveAs(content, fileName);
}

Expand Down

0 comments on commit 380653f

Please sign in to comment.