diff --git a/core/modules/syncer.js b/core/modules/syncer.js index 5e1a8f415..e32fd0b9d 100644 --- a/core/modules/syncer.js +++ b/core/modules/syncer.js @@ -20,6 +20,7 @@ Syncer.prototype.titleIsAnonymous = "$:/status/IsAnonymous"; Syncer.prototype.titleIsReadOnly = "$:/status/IsReadOnly"; Syncer.prototype.titleUserName = "$:/status/UserName"; Syncer.prototype.titleSyncFilter = "$:/config/SyncFilter"; +Syncer.prototype.titleSyncPollingInterval = "$:/config/SyncPollingInterval"; Syncer.prototype.titleSavedNotification = "$:/language/Notifications/Save/Done"; Syncer.prototype.taskTimerInterval = 1 * 1000; // Interval for sync timer Syncer.prototype.throttleInterval = 1 * 1000; // Defer saving tiddlers if they've changed in the last 1s... @@ -43,7 +44,7 @@ function Syncer(options) { this.taskTimerInterval = options.taskTimerInterval || this.taskTimerInterval; this.throttleInterval = options.throttleInterval || this.throttleInterval; this.fallbackInterval = options.fallbackInterval || this.fallbackInterval; - this.pollTimerInterval = options.pollTimerInterval || this.pollTimerInterval; + this.pollTimerInterval = options.pollTimerInterval || parseInt(this.wiki.getTiddlerText(this.titleSyncPollingInterval,""),10) || this.pollTimerInterval; this.logging = "logging" in options ? options.logging : true; // Make a logger this.logger = new $tw.utils.Logger("syncer" + ($tw.browser ? "-browser" : "") + ($tw.node ? "-server" : "") + (this.syncadaptor.name ? ("-" + this.syncadaptor.name) : ""),{