1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Fixed problem with —servewiki option

This commit is contained in:
Jeremy Ruston 2012-01-24 16:25:21 +00:00
parent 7375614849
commit 870529f76b

View File

@ -154,7 +154,7 @@ var commandLineSwitches = {
http.createServer(function(request, response) { http.createServer(function(request, response) {
response.writeHead(200, {"Content-Type": "text/html"}); response.writeHead(200, {"Content-Type": "text/html"});
var store = new WikiStore(); var store = new WikiStore();
var recipe = new Recipe(store,lastRecipeFilepath,function() { var recipe = new Recipe({store: store,filepath: lastRecipeFilepath},function() {
response.end(recipe.cook(), "utf8"); response.end(recipe.cook(), "utf8");
}); });
}).listen(port); }).listen(port);