No debounce while offline, static index.html page, 3.0.10-beta2

This commit is contained in:
Mo Bitar
2019-06-03 11:41:08 -05:00
parent a503051628
commit 678f8d73bc
7 changed files with 70 additions and 47 deletions

View File

@@ -1,5 +1,5 @@
angular.module('app')
.constant('appVersion', '3.0.10-beta1')
.constant('appVersion', '3.0.10-beta2')
;

View File

@@ -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) => {