1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-25 23:03:15 +00:00

Filename will now be set to "tiddlywiki.html" when path does not contain a filename.

This commit is contained in:
Andreas Hahn 2014-12-16 00:51:30 +01:00
parent 97422ee1b9
commit 513e1c8cbb

View File

@ -26,10 +26,11 @@ DownloadSaver.prototype.save = function(text,method,callback,options) {
var p = document.location.pathname.lastIndexOf("/");
if(p !== -1) {
filename = document.location.pathname.substr(p+1);
} else {
filename = "tiddlywiki.html";
}
}
if(!filename) {
filename = "tiddlywiki.html";
}
// Set up the link
var link = document.createElement("a");
link.setAttribute("target","_blank");