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:
Abe Jellinek 2022-03-15 10:43:17 -07:00
parent 6240e08ca0
commit b1d11bf7dc

View file

@ -2439,7 +2439,8 @@ var ZoteroPane = new function()
|| Zotero.Prefs.get('sync.autoSync')
|| Zotero.Libraries.getAll()
.every(library => !library.syncable
|| library.lastSync?.getTime() > Date.now() - 1000 * sevenDays)) {
|| (library.lastSync
&& library.lastSync.getTime() > Date.now() - 1000 * sevenDays))) {
return;
}