aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrmr19932017-02-08 18:00:12 +0000
committermrmr19932017-02-08 18:00:12 +0000
commit935a3b4acc063317571df9397032e23d7b29dcd1 (patch)
treeed579779295ea454c4758475c287e494a9b9050d
parent32f4a88943bb9bae5398241937f298287ad39417 (diff)
downloadvimium-935a3b4acc063317571df9397032e23d7b29dcd1.tar.bz2
Stop using deprecated tabs.getAllInWindow; switch to tabs.query
-rw-r--r--background_scripts/main.coffee4
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