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

Commit 380653f

Browse files
authored
Fix plain text export saving (#9230)
This tweaks the MIME type of plain text exports so that the browser actually saves the file.
1 parent c8686b6 commit 380653f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/exportUtils/Exporter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default abstract class Exporter {
105105
}
106106

107107
protected downloadPlainText(fileName: string, text: string) {
108-
const content = new Blob([text], { type: "text" });
108+
const content = new Blob([text], { type: "text/plain" });
109109
saveAs(content, fileName);
110110
}
111111

0 commit comments

Comments
 (0)