mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Fix plain text export saving (#9230)
This tweaks the MIME type of plain text exports so that the browser actually saves the file.
This commit is contained in:
parent
c8686b69bd
commit
380653f5df
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue