mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-23 07:26:54 +00:00
Removed startup history list processing
Not needed anymore
This commit is contained in:
parent
292e55a154
commit
416ab0c060
@ -75,15 +75,11 @@ exports.startup = function() {
|
|||||||
}
|
}
|
||||||
// Initialise the story and history
|
// Initialise the story and history
|
||||||
var storyTitle = "$:/StoryList",
|
var storyTitle = "$:/StoryList",
|
||||||
historyTitle = "$:/HistoryList",
|
story = [];
|
||||||
story = [],
|
|
||||||
history = [];
|
|
||||||
for(var t=0; t<defaultTiddlers.length; t++) {
|
for(var t=0; t<defaultTiddlers.length; t++) {
|
||||||
story[t] = defaultTiddlers[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: 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 we're being viewed on a data: URI then give instructions for how to save
|
||||||
if(document.location.protocol === "data:") {
|
if(document.location.protocol === "data:") {
|
||||||
var event = document.createEvent("Event");
|
var event = document.createEvent("Event");
|
||||||
|
Loading…
Reference in New Issue
Block a user