diff options
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/main.coffee | 6 | ||||
| -rw-r--r-- | background_scripts/marks.coffee | 2 | 
2 files changed, 4 insertions, 4 deletions
| diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index e02cef4d..70739eae 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -99,7 +99,7 @@ TabOperations =      tabConfig =        url: Utils.convertToUrl request.url        index: request.tab.index + 1 -      selected: true +      active: true        windowId: request.tab.windowId        openerTabId: request.tab.id      chrome.tabs.create tabConfig, callback @@ -127,7 +127,7 @@ toggleMuteTab = do ->  selectSpecificTab = (request) ->    chrome.tabs.get(request.id, (tab) ->      chrome.windows.update(tab.windowId, { focused: true }) -    chrome.tabs.update(request.id, { selected: true })) +    chrome.tabs.update(request.id, { active: true }))  moveTab = ({count, tab, registryEntry}) ->    count = -count if registryEntry.command == "moveTabLeft" @@ -238,7 +238,7 @@ selectTab = (direction, {count, tab}) ->              Math.min tabs.length - 1, count - 1            when "last"              Math.max 0, tabs.length - count -      chrome.tabs.update tabs[toSelect].id, selected: true +      chrome.tabs.update tabs[toSelect].id, active: true  chrome.tabs.onUpdated.addListener (tabId, changeInfo, tab) ->    return unless changeInfo.status == "loading" # Only do this once per URL change. diff --git a/background_scripts/marks.coffee b/background_scripts/marks.coffee index dbc14671..33c467a7 100644 --- a/background_scripts/marks.coffee +++ b/background_scripts/marks.coffee @@ -57,7 +57,7 @@ Marks =    # Focus an existing tab and scroll to the given position within it.    gotoPositionInTab: ({ tabId, scrollX, scrollY, markName }) -> -    chrome.tabs.update tabId, {selected: true}, -> +    chrome.tabs.update tabId, { active: true }, ->        chrome.tabs.sendMessage tabId, {name: "setScrollPosition", scrollX, scrollY}    # The tab we're trying to find no longer exists.  We either find another tab with a matching URL and use it, | 
