mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Fix problem with theme overrides triggering the syncer object
Fixes #479
This commit is contained in:
parent
ad96c48034
commit
8d612aefdd
@ -34,8 +34,6 @@ exports.startup = function() {
|
|||||||
$tw.macros = $tw.modules.getModulesByTypeAsHashmap("macro");
|
$tw.macros = $tw.modules.getModulesByTypeAsHashmap("macro");
|
||||||
// Set up the parsers
|
// Set up the parsers
|
||||||
$tw.wiki.initParsers();
|
$tw.wiki.initParsers();
|
||||||
// Set up the syncer object
|
|
||||||
$tw.syncer = new $tw.Syncer({wiki: $tw.wiki});
|
|
||||||
// Set up the command modules
|
// Set up the command modules
|
||||||
$tw.Commander.initCommands();
|
$tw.Commander.initCommands();
|
||||||
// Kick off the language manager
|
// Kick off the language manager
|
||||||
@ -71,6 +69,8 @@ exports.startup = function() {
|
|||||||
story[t] = defaultTiddlers[t];
|
story[t] = defaultTiddlers[t];
|
||||||
}
|
}
|
||||||
$tw.wiki.addTiddler({title: storyTitle, text: "", list: story},$tw.wiki.getModificationFields());
|
$tw.wiki.addTiddler({title: storyTitle, text: "", list: story},$tw.wiki.getModificationFields());
|
||||||
|
// Set up the syncer object
|
||||||
|
$tw.syncer = new $tw.Syncer({wiki: $tw.wiki});
|
||||||
// Host-specific startup
|
// Host-specific startup
|
||||||
if($tw.browser) {
|
if($tw.browser) {
|
||||||
// Set up our beforeunload handler
|
// Set up our beforeunload handler
|
||||||
|
Loading…
Reference in New Issue
Block a user