mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-03 03:18:02 +00:00
Fix file system behaviour for loading new tiddlers
We don’t need to load tiddlers because they will all have been loaded during bootup, or been created through the file system adaptor.
This commit is contained in:
@@ -460,7 +460,9 @@ Syncer.prototype.dispatchTask = function(task,callback) {
|
||||
return callback(err);
|
||||
}
|
||||
// Store the tiddler
|
||||
self.storeTiddler(tiddlerFields);
|
||||
if(tiddlerFields) {
|
||||
self.storeTiddler(tiddlerFields);
|
||||
}
|
||||
// Invoke the callback
|
||||
callback(null);
|
||||
});
|
||||
|
@@ -178,10 +178,12 @@ console.log("FileSystem: Saved file",fileInfo.filepath);
|
||||
|
||||
/*
|
||||
Load a tiddler and invoke the callback with (err,tiddlerFields)
|
||||
|
||||
We don't need to implement loading for the file system adaptor, because all the tiddler files will have been loaded during the boot process.
|
||||
*/
|
||||
FileSystemAdaptor.prototype.loadTiddler = function(title,callback) {
|
||||
console.log("FileSystem: Loading",title);
|
||||
callback(null,{title: title, text: "Fake tiddler: " + title});
|
||||
callback(null,null);
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user