From d6f5b3cacd18e1a05620144bef59fee4875c7335 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 12 Feb 2017 15:35:04 +0000 Subject: [PATCH] Filesystemadaptor: Fix problem with unknown file extensions --- plugins/tiddlywiki/filesystem/filesystemadaptor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tiddlywiki/filesystem/filesystemadaptor.js b/plugins/tiddlywiki/filesystem/filesystemadaptor.js index 00dfc39e1..379d11ea0 100644 --- a/plugins/tiddlywiki/filesystem/filesystemadaptor.js +++ b/plugins/tiddlywiki/filesystem/filesystemadaptor.js @@ -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");