From cddd3ca173335b9e6e03c210394bb24be667fd2f Mon Sep 17 00:00:00 2001 From: Thomas Buckley-Houston Date: Mon, 18 Jun 2018 19:38:24 +0800 Subject: [PATCH] Fix for HTTP server tabs not automatically closing --- webext/src/background/tab_commands_mixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webext/src/background/tab_commands_mixin.js b/webext/src/background/tab_commands_mixin.js index 00df60b..fe1094e 100644 --- a/webext/src/background/tab_commands_mixin.js +++ b/webext/src/background/tab_commands_mixin.js @@ -55,7 +55,7 @@ export default (MixinBase) => class extends MixinBase { _tabCount(callback) { this._getAllTabs((windowInfoArray) => { - callback(windowInfoArray.length); + callback(windowInfoArray[0].tabs.length); }); }