diff --git a/core/modules/startup.js b/core/modules/startup.js index b4e9bd5a2..c0dc16db4 100755 --- a/core/modules/startup.js +++ b/core/modules/startup.js @@ -50,6 +50,8 @@ exports.startup = function() { }); // Clear outstanding tiddler store change events to avoid an unnecessary refresh cycle at startup $tw.wiki.clearTiddlerEventQueue(); + // Set up the syncer object + $tw.syncer = new $tw.Syncer({wiki: $tw.wiki}); // Host-specific startup if($tw.browser) { // Set up our beforeunload handler diff --git a/core/modules/startup/syncer-browser.js b/core/modules/startup/syncer-browser.js index c5b6d70c4..a79c5e631 100644 --- a/core/modules/startup/syncer-browser.js +++ b/core/modules/startup/syncer-browser.js @@ -19,8 +19,6 @@ exports.after = ["rootwidget"]; exports.synchronous = true; exports.startup = function() { - // Set up the syncer object - $tw.syncer = new $tw.Syncer({wiki: $tw.wiki}); // Listen out for login/logout/refresh events in the browser $tw.rootWidget.addEventListener("tw-login",function() { $tw.syncer.handleLoginEvent();