Skip to content

Commit

Permalink
Don't suspend current tab automatically #24
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jan 29, 2016
1 parent d7ad988 commit 65f55f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/suspendtab.js
Original file line number Diff line number Diff line change
Expand Up @@ -588,12 +588,12 @@ SuspendTab.prototype = inherit(require('const'), {
}

aTab.__suspendtab__timestamp = timestamp || now;
aTab.__suspendtab__timer = setTimeout(function(aSelf) {
aTab.__suspendtab__timer = setTimeout((function() {
aTab.__suspendtab__timestamp = 0;
aTab.__suspendtab__timer = null;
if (aSelf.autoSuspend)
aSelf.suspend(aTab);
}, this.autoSuspendTimeout, this)
if (!aTab.selected && this.autoSuspend)
this.suspend(aTab);
}).bind(this), this.autoSuspendTimeout)

this.updateTooltip(aTab);
},
Expand Down

0 comments on commit 65f55f9

Please sign in to comment.