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); }