From 380653f5df7362093f6891a85339a2812ae66f3e Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 1 Sep 2022 11:12:01 +0100 Subject: [PATCH] Fix plain text export saving (#9230) This tweaks the MIME type of plain text exports so that the browser actually saves the file. --- src/utils/exportUtils/Exporter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/exportUtils/Exporter.ts b/src/utils/exportUtils/Exporter.ts index 7b4a7bf342..7f7f57f92e 100644 --- a/src/utils/exportUtils/Exporter.ts +++ b/src/utils/exportUtils/Exporter.ts @@ -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); }