mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 17:45:22 +00:00
fileStorage/sagas: use pythonFileMimeType
Missed an instance where text/x-python was hard-coded.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user