diff --git a/background.js b/background.js index d83e1c0..8f65e64 100644 --- a/background.js +++ b/background.js @@ -91,3 +91,9 @@ chrome.runtime.onConnect.addListener(function(devToolsPort) { } }); + +chrome.tabs.onRemoved.addListener(function (tabId) { + if (data[tabId]) { + delete data[tabId]; + } +});