Fix plain text export saving (#9230)

This tweaks the MIME type of plain text exports so that the browser actually
saves the file.
This commit is contained in:
J. Ryan Stinnett 2022-09-01 11:12:01 +01:00 committed by GitHub
parent c8686b69bd
commit 380653f5df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}