1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-17 07:47:24 +00:00

Fix incorrect downloaded file extension (#8928)

* Fix incorrect downloaded file extension

* Update docs
This commit is contained in:
Leilei332
2025-02-15 02:17:00 +08:00
committed by GitHub
parent 2a2d998bef
commit fbe5a2f908
8 changed files with 14 additions and 5 deletions

View File

@@ -185,7 +185,7 @@ SaverHandler.prototype.saveWiki = function(options) {
// Call the highest priority saver that supports this method
for(var t=this.savers.length-1; t>=0; t--) {
var saver = this.savers[t];
if(saver.info.capabilities.indexOf(method) !== -1 && saver.save(text,method,callback,{variables: {filename: variables.filename}})) {
if(saver.info.capabilities.indexOf(method) !== -1 && saver.save(text,method,callback,{variables: {filename: variables.filename, type: variables.type}})) {
this.logger.log("Saving wiki with method",method,"through saver",saver.info.name);
return true;
}