Disable OS.File for file syncs on Windows <Fx25
stat.lastModificationDate returns the last access date instead of the modification date due to bug https://bugzilla.mozilla.org/show_bug.cgi?id=899436
This commit is contained in:
parent
84c5a1bffa
commit
d5fcde0612
|
@ -811,8 +811,12 @@ Zotero.Sync.Storage = new function () {
|
||||||
var numItems = items.length;
|
var numItems = items.length;
|
||||||
var updatedStates = {};
|
var updatedStates = {};
|
||||||
|
|
||||||
// OS.File didn't work reliably before Firefox 23, so use the old code
|
// OS.File didn't work reliably before Firefox 23, and on Windows it returns
|
||||||
if (Zotero.platformMajorVersion < 23) {
|
// the access time instead of the modification time until Firefox 25
|
||||||
|
// (https://bugzilla.mozilla.org/show_bug.cgi?id=899436),
|
||||||
|
// so use the old code
|
||||||
|
if (Zotero.platformMajorVersion < 23
|
||||||
|
|| (Zotero.isWin && Zotero.platformMajorVersion < 25)) {
|
||||||
Zotero.debug("Performing synchronous file update check");
|
Zotero.debug("Performing synchronous file update check");
|
||||||
|
|
||||||
for each(var item in items) {
|
for each(var item in items) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user