Gecko 16 and later sets topic to 'active'

This commit is contained in:
Sylvester Keil 2018-07-03 11:48:45 +02:00 committed by Adomas Venčkauskas
parent e406ddc54b
commit b2a1977d5a
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -224,7 +224,7 @@ Zotero.Sync.EventListeners.IdleListener = {
_backObserver: {
observe: function (subject, topic, data) {
if (topic != 'back') {
if (topic !== 'active') {
return;
}