From b2a1977d5a2696e72187a521e01ff511885dca8e Mon Sep 17 00:00:00 2001 From: Sylvester Keil Date: Tue, 3 Jul 2018 11:48:45 +0200 Subject: [PATCH] Gecko 16 and later sets topic to 'active' --- chrome/content/zotero/xpcom/data/items.js | 2 +- chrome/content/zotero/xpcom/sync/syncEventListeners.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/items.js b/chrome/content/zotero/xpcom/data/items.js index c61192e21a..e55a298726 100644 --- a/chrome/content/zotero/xpcom/data/items.js +++ b/chrome/content/zotero/xpcom/data/items.js @@ -1001,7 +1001,7 @@ Zotero.Items = function() { }); } // When no longer idle, cancel timer - else if (topic == 'back') { + else if (topic === 'active') { if (this._emptyTrashTimeoutID) { clearTimeout(this._emptyTrashTimeoutID); this._emptyTrashTimeoutID = null; diff --git a/chrome/content/zotero/xpcom/sync/syncEventListeners.js b/chrome/content/zotero/xpcom/sync/syncEventListeners.js index 4e177022a4..d06b316ed4 100644 --- a/chrome/content/zotero/xpcom/sync/syncEventListeners.js +++ b/chrome/content/zotero/xpcom/sync/syncEventListeners.js @@ -224,7 +224,7 @@ Zotero.Sync.EventListeners.IdleListener = { _backObserver: { observe: function (subject, topic, data) { - if (topic != 'back') { + if (topic !== 'active') { return; }