resolve activateTab() to tab instead of [tab, window]

This commit is contained in:
tophf 2018-03-14 22:00:25 +03:00
parent 06ded49131
commit f2d49ecbb9

View File

@ -430,7 +430,7 @@ function activateTab(tab) {
chrome.windows && new Promise(resolve => {
chrome.windows.update(tab.windowId, {focused: true}, resolve);
}),
]);
]).then(([tab]) => tab);
}