Merge pull request #26 from akarlsten/master

fix: Lets switchTab switch to other Chrome windows, with focus
This commit is contained in:
Alyssa X 2022-01-15 11:36:16 +01:00 committed by GitHub
commit e30dd3a5f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -229,8 +229,13 @@ const getBookmarks = () => {
// Lots of different actions
const switchTab = (tab) => {
chrome.tabs.highlight({
tabs: tab.index
tabs: tab.index,
windowId: tab.windowId
})
chrome.windows.update(
tab.windowId,
{ focused: true }
)
}
const goBack = (tab) => {
chrome.tabs.goBack({