mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 15:14:56 -04:00
Merge pull request #341 from nvsofts/fix_bom_utf8
Removed UTF-8 BOM in download function
This commit is contained in:
commit
a261c8e812
3 changed files with 5 additions and 5 deletions
|
@ -1542,7 +1542,7 @@ ui.toolbar.download.markdown.click(function (e) {
|
|||
var blob = new Blob([markdown], {
|
||||
type: "text/markdown;charset=utf-8"
|
||||
});
|
||||
saveAs(blob, filename);
|
||||
saveAs(blob, filename, true);
|
||||
});
|
||||
//html
|
||||
ui.toolbar.download.html.click(function (e) {
|
||||
|
@ -1922,7 +1922,7 @@ $('#revisionModalDownload').click(function () {
|
|||
var blob = new Blob([revision.content], {
|
||||
type: "text/markdown;charset=utf-8"
|
||||
});
|
||||
saveAs(blob, filename);
|
||||
saveAs(blob, filename, true);
|
||||
});
|
||||
$('#revisionModalRevert').click(function () {
|
||||
if (!revision) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue