aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--background_scripts/main.coffee7
1 files changed, 2 insertions, 5 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 71f963b2..c585c265 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -234,12 +234,9 @@ BackgroundCommands =
previousTab: (callback) -> selectTab(callback, "previous")
firstTab: (callback) -> selectTab(callback, "first")
lastTab: (callback) -> selectTab(callback, "last")
- removeTab: (callback) ->
+ removeTab: ->
chrome.tabs.getSelected(null, (tab) ->
- chrome.tabs.remove(tab.id)
- # We can't just call the callback here because we need to wait
- # for the selection to change to consider this action done.
- selectionChangedHandlers.push(callback))
+ chrome.tabs.remove(tab.id))
restoreTab: (callback) ->
# TODO(ilya): Should this be getLastFocused instead?
chrome.windows.getCurrent((window) ->