Skip to content
This repository was archived by the owner on Feb 9, 2020. It is now read-only.

Commit 68b72bf

Browse files
committed
fix(background): remove data for closed tabs
1 parent 0cf05a7 commit 68b72bf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

background.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,9 @@ chrome.runtime.onConnect.addListener(function(devToolsPort) {
9191
}
9292

9393
});
94+
95+
chrome.tabs.onRemoved.addListener(function (tabId) {
96+
if (data[tabId]) {
97+
delete data[tabId];
98+
}
99+
});

0 commit comments

Comments
 (0)