1
0
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:
Kushagra Gour
2018-03-24 12:40:00 +05:30
parent ac8add3475
commit 40f9f96fc5

View File

@ -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);