From 6062517dec67a658bc93b42873a149009b7aef47 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Wed, 16 Mar 2022 13:22:42 -0500 Subject: [PATCH] fileStorage/sagas: use pythonFileMimeType Missed an instance where text/x-python was hard-coded. --- src/fileStorage/sagas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileStorage/sagas.ts b/src/fileStorage/sagas.ts index 9bced53c..b44e174b 100644 --- a/src/fileStorage/sagas.ts +++ b/src/fileStorage/sagas.ts @@ -110,7 +110,7 @@ function* handleExportFile( return; } - const blob = new Blob([data], { type: 'text/x-python;charset=utf-8' }); + const blob = new Blob([data], { type: `${pythonFileMimeType};charset=utf-8` }); if (window.showSaveFilePicker) { // This uses https://wicg.github.io/file-system-access which is not