No debounce while offline, static index.html page, 3.0.10-beta2
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
angular.module('app')
|
||||
|
||||
.constant('appVersion', '3.0.10-beta1')
|
||||
.constant('appVersion', '3.0.10-beta2')
|
||||
|
||||
;
|
||||
@@ -303,7 +303,12 @@ angular.module('app')
|
||||
$timeout.cancel(this.saveTimeout);
|
||||
}
|
||||
|
||||
let syncDebouceMs = bypassDebouncer ? SyncNoDebounce : SyncDebouce;
|
||||
let syncDebouceMs;
|
||||
if(authManager.offline() || bypassDebouncer) {
|
||||
syncDebouceMs = SyncNoDebounce;
|
||||
} else {
|
||||
syncDebouceMs = SyncDebouce;
|
||||
}
|
||||
|
||||
this.saveTimeout = $timeout(() => {
|
||||
syncManager.sync().then((response) => {
|
||||
|
||||
Reference in New Issue
Block a user