mirror of
https://github.com/chinchang/web-maker.git
synced 2025-06-21 15:04:01 +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.getSeconds()
|
||||
].join('-');
|
||||
fileName += '.html';
|
||||
|
||||
if (currentItem.title) {
|
||||
fileName = currentItem.title;
|
||||
}
|
||||
fileName += '.html';
|
||||
|
||||
var blob = new Blob([fileContent], { type: 'text/html;charset=UTF-8' });
|
||||
utils.downloadFile(fileName, blob);
|
||||
|
Reference in New Issue
Block a user