From 78928675317efe8e41bdb4b5a20735e3021bb515 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Wed, 31 Aug 2022 23:35:58 +0100 Subject: [PATCH] Fix plain text export saving 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 7b4a7bf342f..7f7f57f92ef 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); }