mirror of
https://github.com/alyssaxuu/omni.git
synced 2026-03-11 08:54:35 +00:00
Merge pull request #26 from akarlsten/master
fix: Lets switchTab switch to other Chrome windows, with focus
This commit is contained in:
commit
e30dd3a5f5
1 changed files with 6 additions and 1 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in a new issue