kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Missed off previous commit
rodzic
a2caf46b1e
commit
377d84185a
|
@ -75,8 +75,8 @@ exports.startup = function() {
|
||||||
story.tiddlers[t] = {title: defaultTiddlers[t]};
|
story.tiddlers[t] = {title: defaultTiddlers[t]};
|
||||||
history.stack[defaultTiddlers.length - t - 1] = {title: defaultTiddlers[t], fromTitle: defaultTiddlers[t+1]};
|
history.stack[defaultTiddlers.length - t - 1] = {title: defaultTiddlers[t], fromTitle: defaultTiddlers[t+1]};
|
||||||
}
|
}
|
||||||
$tw.wiki.addTiddler(new $tw.Tiddler({title: storyTitle,type: "application/json", text: JSON.stringify(story)}));
|
$tw.wiki.setTiddlerData(storyTitle,story);
|
||||||
$tw.wiki.addTiddler(new $tw.Tiddler({title: historyTitle,type: "application/json", text: JSON.stringify(history)}));
|
$tw.wiki.setTiddlerData(historyTitle,history);
|
||||||
// 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");
|
||||||
|
|
Ładowanie…
Reference in New Issue