Gecko 16 and later sets topic to 'active'
This commit is contained in:
parent
e406ddc54b
commit
b2a1977d5a
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -224,7 +224,7 @@ Zotero.Sync.EventListeners.IdleListener = {
|
|||
|
||||
_backObserver: {
|
||||
observe: function (subject, topic, data) {
|
||||
if (topic != 'back') {
|
||||
if (topic !== 'active') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue