Merge pull request #341 from nvsofts/fix_bom_utf8

Removed UTF-8 BOM in download function
This commit is contained in:
Max Wu
2017-02-03 18:28:05 +08:00
committed by GitHub
3 changed files with 5 additions and 5 deletions

View File

@@ -603,7 +603,7 @@ export function exportToRawHTML(view) {
const blob = new Blob([html], {
type: "text/html;charset=utf-8"
});
saveAs(blob, filename);
saveAs(blob, filename, true);
}
//extract markdown body to html and compile to template
@@ -635,7 +635,7 @@ export function exportToHTML(view) {
const blob = new Blob([html], {
type: "text/html;charset=utf-8"
});
saveAs(blob, filename);
saveAs(blob, filename, true);
});
});
}