mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-11 18:00:26 +00:00
Fixed typo in recipe handling
This commit is contained in:
parent
3e49513c73
commit
4e0528e3dd
@ -33,7 +33,7 @@ exports["application/x-tiddlywiki-recipe"] = function(text,fields) {
|
|||||||
},
|
},
|
||||||
loadTiddlersFromFile = function(sourcePath,prefix) {
|
loadTiddlersFromFile = function(sourcePath,prefix) {
|
||||||
var ext = path.extname(sourcePath),
|
var ext = path.extname(sourcePath),
|
||||||
extensionInfo = $tw.config.fileExtensions[ext],
|
extensionInfo = $tw.config.fileExtensionInfo[ext],
|
||||||
typeInfo = extensionInfo ? $tw.config.contentTypeInfo[extensionInfo.type] : null,
|
typeInfo = extensionInfo ? $tw.config.contentTypeInfo[extensionInfo.type] : null,
|
||||||
data = fs.readFileSync(sourcePath).toString(typeInfo ? typeInfo.encoding : "utf8"),
|
data = fs.readFileSync(sourcePath).toString(typeInfo ? typeInfo.encoding : "utf8"),
|
||||||
fields = {title: sourcePath},
|
fields = {title: sourcePath},
|
||||||
|
Loading…
Reference in New Issue
Block a user