fix activateTab to produce a tab instead of [tab, window]

This commit is contained in:
tophf 2017-08-21 17:38:40 +03:00
parent 40f9413207
commit 83dcc488dd

View File

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