diff options
| author | mrmr1993 | 2017-02-08 18:00:12 +0000 | 
|---|---|---|
| committer | mrmr1993 | 2017-02-08 18:00:12 +0000 | 
| commit | 935a3b4acc063317571df9397032e23d7b29dcd1 (patch) | |
| tree | ed579779295ea454c4758475c287e494a9b9050d | |
| parent | 32f4a88943bb9bae5398241937f298287ad39417 (diff) | |
| download | vimium-935a3b4acc063317571df9397032e23d7b29dcd1.tar.bz2 | |
Stop using deprecated tabs.getAllInWindow; switch to tabs.query
| -rw-r--r-- | background_scripts/main.coffee | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 13f88157..e02cef4d 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -131,7 +131,7 @@ selectSpecificTab = (request) ->  moveTab = ({count, tab, registryEntry}) ->    count = -count if registryEntry.command == "moveTabLeft" -  chrome.tabs.getAllInWindow null, (tabs) -> +  chrome.tabs.query { currentWindow: true }, (tabs) ->      pinnedCount = (tabs.filter (tab) -> tab.pinned).length      minIndex = if tab.pinned then 0 else pinnedCount      maxIndex = (if tab.pinned then pinnedCount else tabs.length) - 1 @@ -226,7 +226,7 @@ removeTabsRelative = (direction, {tab: activeTab}) ->  # Selects a tab before or after the currently selected tab.  # - direction: "next", "previous", "first" or "last".  selectTab = (direction, {count, tab}) -> -  chrome.tabs.getAllInWindow null, (tabs) -> +  chrome.tabs.query { currentWindow: true }, (tabs) ->      if 1 < tabs.length        toSelect =          switch direction | 
