From f2d49ecbb905651407e35a79be2264ed7c3ad237 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 14 Mar 2018 22:00:25 +0300 Subject: [PATCH] resolve activateTab() to 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 588e5a76..a46b3a16 100644 --- a/js/messaging.js +++ b/js/messaging.js @@ -430,7 +430,7 @@ function activateTab(tab) { chrome.windows && new Promise(resolve => { chrome.windows.update(tab.windowId, {focused: true}, resolve); }), - ]); + ]).then(([tab]) => tab); }