mirror of
https://github.com/chinchang/web-maker.git
synced 2025-08-06 05:17:31 +02:00
script.js: fix save as html funtionality. fixes #274
This commit is contained in:
@@ -1248,11 +1248,11 @@ loginModal, profileModal, profileAvatarImg, profileUserName, openItemsBtn, askTo
|
|||||||
d.getMinutes(),
|
d.getMinutes(),
|
||||||
d.getSeconds()
|
d.getSeconds()
|
||||||
].join('-');
|
].join('-');
|
||||||
fileName += '.html';
|
|
||||||
|
|
||||||
if (currentItem.title) {
|
if (currentItem.title) {
|
||||||
fileName = currentItem.title;
|
fileName = currentItem.title;
|
||||||
}
|
}
|
||||||
|
fileName += '.html';
|
||||||
|
|
||||||
var blob = new Blob([fileContent], { type: 'text/html;charset=UTF-8' });
|
var blob = new Blob([fileContent], { type: 'text/html;charset=UTF-8' });
|
||||||
utils.downloadFile(fileName, blob);
|
utils.downloadFile(fileName, blob);
|
||||||
|
Reference in New Issue
Block a user