Removed startup history list processing

Not needed anymore
print-window-tiddler
Jeremy Ruston 2012-10-26 22:51:54 +01:00
rodzic 292e55a154
commit 416ab0c060
1 zmienionych plików z 1 dodań i 5 usunięć

Wyświetl plik

@ -75,15 +75,11 @@ exports.startup = function() {
}
// Initialise the story and history
var storyTitle = "$:/StoryList",
historyTitle = "$:/HistoryList",
story = [],
history = [];
story = [];
for(var t=0; t<defaultTiddlers.length; t++) {
story[t] = defaultTiddlers[t];
history[defaultTiddlers.length - t - 1] = defaultTiddlers[t];
}
$tw.wiki.addTiddler({title: storyTitle, text: story.join("\n")});
$tw.wiki.addTiddler({title: historyTitle, text: history.join("\n")});
// If we're being viewed on a data: URI then give instructions for how to save
if(document.location.protocol === "data:") {
var event = document.createEvent("Event");