We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c83e0b9 commit bd3aca8Copy full SHA for bd3aca8
background_scripts/tab_recency.js
@@ -72,14 +72,6 @@ class TabRecency {
72
this.counter = maxCounter;
73
}
74
75
- // Tabs loaded from storage should be considered accessed less recently than any tab tracked in
76
- // memory, so increase all of the in-memory tabs's counters by maxCounter.
77
- for (const [id, counter] of Object.entries(this.tabIdToCounter)) {
78
- const newCounter = counter + maxCounter;
79
- this.tabIdToCounter[id] = newCounter;
80
- if (this.counter < newCounter) this.counter = newCounter;
81
- }
82
-
83
this.tabIdToCounter = Object.assign({}, storage.tabRecency);
84
85
// Remove any tab IDs which aren't currently loaded.
0 commit comments