Really fix lastSync log spam
6b6c27029b
didn't do the trick because
library.lastSync can be false and the ?. operator doesn't catch that.
This commit is contained in:
parent
6240e08ca0
commit
b1d11bf7dc
1 changed files with 2 additions and 1 deletions
|
@ -2439,7 +2439,8 @@ var ZoteroPane = new function()
|
||||||
|| Zotero.Prefs.get('sync.autoSync')
|
|| Zotero.Prefs.get('sync.autoSync')
|
||||||
|| Zotero.Libraries.getAll()
|
|| Zotero.Libraries.getAll()
|
||||||
.every(library => !library.syncable
|
.every(library => !library.syncable
|
||||||
|| library.lastSync?.getTime() > Date.now() - 1000 * sevenDays)) {
|
|| (library.lastSync
|
||||||
|
&& library.lastSync.getTime() > Date.now() - 1000 * sevenDays))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue