File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ $(".ui-save-history").click(() => {
325325 const blob = new Blob ( [ history ] , {
326326 type : "application/json;charset=utf-8"
327327 } ) ;
328- saveAs ( blob , `hackmd_history_${ moment ( ) . format ( 'YYYYMMDDHHmmss' ) } ` ) ;
328+ saveAs ( blob , `hackmd_history_${ moment ( ) . format ( 'YYYYMMDDHHmmss' ) } ` , true ) ;
329329 } ) ;
330330} ) ;
331331
Original file line number Diff line number Diff line change @@ -612,7 +612,7 @@ export function exportToRawHTML(view) {
612612 const blob = new Blob ( [ html ] , {
613613 type : "text/html;charset=utf-8"
614614 } ) ;
615- saveAs ( blob , filename ) ;
615+ saveAs ( blob , filename , true ) ;
616616}
617617
618618//extract markdown body to html and compile to template
@@ -644,7 +644,7 @@ export function exportToHTML(view) {
644644 const blob = new Blob ( [ html ] , {
645645 type : "text/html;charset=utf-8"
646646 } ) ;
647- saveAs ( blob , filename ) ;
647+ saveAs ( blob , filename , true ) ;
648648 } ) ;
649649 } ) ;
650650}
Original file line number Diff line number Diff line change @@ -1542,7 +1542,7 @@ ui.toolbar.download.markdown.click(function (e) {
15421542 var blob = new Blob ( [ markdown ] , {
15431543 type : "text/markdown;charset=utf-8"
15441544 } ) ;
1545- saveAs ( blob , filename ) ;
1545+ saveAs ( blob , filename , true ) ;
15461546} ) ;
15471547//html
15481548ui . toolbar . download . html . click ( function ( e ) {
@@ -1922,7 +1922,7 @@ $('#revisionModalDownload').click(function () {
19221922 var blob = new Blob ( [ revision . content ] , {
19231923 type : "text/markdown;charset=utf-8"
19241924 } ) ;
1925- saveAs ( blob , filename ) ;
1925+ saveAs ( blob , filename , true ) ;
19261926} ) ;
19271927$ ( '#revisionModalRevert' ) . click ( function ( ) {
19281928 if ( ! revision ) return ;
You can’t perform that action at this time.
0 commit comments