mirror of
https://github.com/alyssaxuu/omni.git
synced 2026-03-11 08:54:35 +00:00
Lets switchTab switch to other Chrome windows, with focus
This commit is contained in:
parent
11367af2e3
commit
76c820889f
1 changed files with 6 additions and 1 deletions
|
|
@ -224,8 +224,13 @@ function getBookmarks() {
|
|||
// Lots of different actions
|
||||
function switchTab(tab) {
|
||||
chrome.tabs.highlight({
|
||||
tabs: tab.index
|
||||
tabs: tab.index,
|
||||
windowId: tab.windowId
|
||||
})
|
||||
chrome.windows.update(
|
||||
tab.windowId,
|
||||
{ focused: true }
|
||||
)
|
||||
}
|
||||
function goBack(tab) {
|
||||
chrome.tabs.goBack({
|
||||
|
|
|
|||
Loading…
Reference in a new issue