mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Cleaning up the previous commit
This commit is contained in:
parent
10b192e743
commit
d75db05ea6
@ -26,8 +26,7 @@ FileSystemAdaptor.prototype.getTiddlerInfo = function(tiddler) {
|
||||
$tw.config.typeInfo = {
|
||||
"text/vnd.tiddlywiki": {
|
||||
fileType: "application/x-tiddler",
|
||||
extension: ".tid",
|
||||
template: "$:/core/templates/tid-tiddler"
|
||||
extension: ".tid"
|
||||
},
|
||||
"image/jpeg" : {
|
||||
hasMetaFile: true
|
||||
@ -104,9 +103,7 @@ FileSystemAdaptor.prototype.saveTiddler = function(tiddler,callback) {
|
||||
}
|
||||
if(fileInfo.hasMetaFile) {
|
||||
// Save the tiddler as a separate body and meta file
|
||||
console.log("Saving fileInfo",fileInfo)
|
||||
var typeInfo = $tw.config.contentTypeInfo[fileInfo.type];
|
||||
console.log("Saving typeInfo",typeInfo)
|
||||
fs.writeFile(fileInfo.filepath,tiddler.fields.text,{encoding: typeInfo.encoding},function(err) {
|
||||
if(err) {
|
||||
return callback(err);
|
||||
|
Loading…
Reference in New Issue
Block a user