Skip to content

Commit

Permalink
fix: mru order tab last accessed
Browse files Browse the repository at this point in the history
  • Loading branch information
ngavinsir committed Nov 27, 2024
1 parent eb58929 commit 213c14e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/background/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -745,8 +745,8 @@ function start(browser) {
});
tabs.sort(function(x, y) {
// Shift tabs without "last access" data to the end
var a = tabActivated[x.id];
var b = tabActivated[y.id];
var a = x.lastAccessed || tabActivated[x.id];
var b = y.lastAccessed || tabActivated[y.id];

if (!isFinite(a) && !isFinite(b)) {
return 0;
Expand Down

0 comments on commit 213c14e

Please sign in to comment.