mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-03-26 05:16:55 +00:00
Filename will now be set to "tiddlywiki.html" when path does not contain a filename.
This commit is contained in:
parent
97422ee1b9
commit
513e1c8cbb
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user