From 09b6540998fec6bf1fb14842be8e8c53dbd5c46a Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 7 Oct 2014 14:07:41 +0100 Subject: [PATCH] Update history for tm-home message --- core/modules/startup/story.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/modules/startup/story.js b/core/modules/startup/story.js index 6c7258485..460e48ba3 100644 --- a/core/modules/startup/story.js +++ b/core/modules/startup/story.js @@ -59,6 +59,9 @@ exports.startup = function() { var storyFilter = $tw.wiki.getTiddlerText(DEFAULT_TIDDLERS_TITLE), storyList = $tw.wiki.filterTiddlers(storyFilter); $tw.wiki.addTiddler({title: DEFAULT_STORY_TITLE, text: "", list: storyList},$tw.wiki.getModificationFields()); + if(storyList[0]) { + $tw.wiki.addToHistory(storyList[0]); + } }); // Listen for the tm-permalink message $tw.rootWidget.addEventListener("tm-permalink",function(event) {