From 5d4aa1e7778323be297ebdbe8e165ce13192cfae Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Thu, 4 Jan 2018 13:57:25 -0500 Subject: [PATCH] expand comment --- background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/background.js b/background.js index 6221dc7..713f09a 100644 --- a/background.js +++ b/background.js @@ -25,7 +25,8 @@ browser.tabs.onCreated.addListener(newTab => { browser.tabs.onRemoved.addListener(tabId => { // This listener can get fired before the tab is removed, so we'll need - // to explicitly filter out the removed tab. + // to explicitly filter out the removed tab to make sure it's not factored + // into the new tab count. getUnpinnedTabs() .then(tabs => tabs.filter(tab => tab.id !== tabId)) .then(tabs => { -- 2.51.2