From 83dcc488dd78f34111531d9828729b84a4ff8118 Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 21 Aug 2017 17:38:40 +0300 Subject: [PATCH] fix activateTab to produce a tab instead of [tab, window] --- js/messaging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/messaging.js b/js/messaging.js index c16a149f..574f7f71 100644 --- a/js/messaging.js +++ b/js/messaging.js @@ -223,7 +223,7 @@ function activateTab(tab) { new Promise(resolve => { chrome.windows.update(tab.windowId, {focused: true}, resolve); }), - ]); + ]).then(([tab]) => tab); }