aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main_background.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/main_background.js b/main_background.js
index 35081ea..799c69f 100644
--- a/main_background.js
+++ b/main_background.js
@@ -435,6 +435,8 @@ async function onTabUpdated(tabId, changedInfo, tab) {
let report = activityReports[tabId];
if (!(report && report.url === url)) {
let cache = await browser.sessions.getTabValue(tabId, url);
+ // on session restore tabIds may change
+ if (cache && cache.tabId !== tabId) cache.tabId = tabId;
updateBadge(tabId, activityReports[tabId] = cache);
}
}