Fix plain text export saving (#9230)

This tweaks the MIME type of plain text exports so that the browser actually
saves the file.
pull/28788/head^2
J. Ryan Stinnett 2022-09-01 11:12:01 +01:00 提交者 GitHub
父节点 c8686b69bd
当前提交 380653f5df
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入1 次删除

查看文件

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