From 29947c52a57cb4ea6ea9070c234f156a627c9e50 Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 6 Apr 2020 14:55:46 -0400 Subject: [PATCH] updated comments --- src/js/background/backgroundLogic.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/background/backgroundLogic.js b/src/js/background/backgroundLogic.js index 4589807..78c3550 100644 --- a/src/js/background/backgroundLogic.js +++ b/src/js/background/backgroundLogic.js @@ -269,7 +269,8 @@ const backgroundLogic = { if (windowId === -1) { const newWindowObj = await browser.windows.create(); windowId = newWindowObj.id; - // take the tab is from the newly created window for deleting uses + // Since creating new window will have opened n default tab, + // take the tab id here, and we could delete it after moving newlyOpenedTabId = newWindowObj.tabs[0].id; }