mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-03-03 12:31:02 -08:00
Filesystemadaptor: Fix problem with unknown file extensions
This commit is contained in:
parent
d5b04c2688
commit
d6f5b3cacd
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ FileSystemAdaptor.prototype.getTiddlerFileInfo = function(tiddler,callback) {
|
|||
var contentTypeInfo = $tw.config.contentTypeInfo[tiddlerType] || {};
|
||||
// Get the file type by looking up the extension
|
||||
var extension = contentTypeInfo.extension || ".tid";
|
||||
fileInfo.type = $tw.config.fileExtensionInfo[extension].type;
|
||||
fileInfo.type = ($tw.config.fileExtensionInfo[extension] || {type: "application/x-tiddler"}).type;
|
||||
// Use a .meta file unless we're saving a .tid file.
|
||||
// (We would need more complex logic if we supported other template rendered tiddlers besides .tid)
|
||||
fileInfo.hasMetaFile = (fileInfo.type !== "application/x-tiddler");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue