gitflow-hotfix-stash: fix_inputs_forcesync

This commit is contained in:
ostertun
2020-10-15 14:03:17 +02:00
parent de5abcdfaf
commit da48e79a36
3 changed files with 29 additions and 4 deletions

View File

@@ -965,10 +965,10 @@ function initDatabase() {
db.transaction('update_times').objectStore('update_times').get('last_sync').onsuccess = function (event) {
var lastSync = event.target.result.time;
if (lastSync > 0) {
if (lastSync > 1) {
runPageScript();
} else {
addSyncInfoToPreloader();
if (lastSync < 1) addSyncInfoToPreloader();
db.transaction('update_times', 'readwrite').objectStore('update_times').put({ table: 'loggedin', status: isLoggedIn() });
loaderCount --;
}