1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Fixed call to obsolete parseTiddlerFile() call

This commit is contained in:
Jeremy Ruston 2012-01-23 19:04:29 +00:00
parent a96df59172
commit ab2a0cd6e3

View File

@ -97,7 +97,7 @@ var commandLineSwitches = {
var fields = {title: args[0]}, var fields = {title: args[0]},
extname = path.extname(args[0]), extname = path.extname(args[0]),
type = extname === ".html" ? "application/x-tiddlywiki" : extname; type = extname === ".html" ? "application/x-tiddlywiki" : extname;
var tiddlers = tiddlerInput.parseTiddlerFile(data,type,fields); var tiddlers = app.store.deserializeTiddlers(type,data,fields);
for(var t=0; t<tiddlers.length; t++) { for(var t=0; t<tiddlers.length; t++) {
app.store.addTiddler(new Tiddler(tiddlers[t])); app.store.addTiddler(new Tiddler(tiddlers[t]));
} }