From 69c03963ac23f0b940687ade9d33f8aafbfe1f05 Mon Sep 17 00:00:00 2001 From: ngavinsir Date: Thu, 28 Nov 2024 21:31:28 +0700 Subject: [PATCH] fix: mru order tab last accessed (#2211) --- src/background/start.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/background/start.js b/src/background/start.js index b98e9602..3cd56e58 100644 --- a/src/background/start.js +++ b/src/background/start.js @@ -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;