Skip to content

Commit 69c0396

Browse files
authored
fix: mru order tab last accessed (#2211)
1 parent eb58929 commit 69c0396

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/background/start.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,8 @@ function start(browser) {
745745
});
746746
tabs.sort(function(x, y) {
747747
// Shift tabs without "last access" data to the end
748-
var a = tabActivated[x.id];
749-
var b = tabActivated[y.id];
748+
var a = x.lastAccessed || tabActivated[x.id];
749+
var b = y.lastAccessed || tabActivated[y.id];
750750

751751
if (!isFinite(a) && !isFinite(b)) {
752752
return 0;

0 commit comments

Comments
 (0)