aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--background_scripts/main.coffee5
1 files changed, 2 insertions, 3 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 3b7670d4..8f94eb04 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -247,9 +247,8 @@ BackgroundCommands =
chrome.tabs.remove(tab.id))
restoreTab: (callback) ->
# TODO: remove if-else -block when adopted into stable
- if chrome.sessionRestore
- chrome.sessionRestore.getRecentlyClosed((closed) ->
- chrome.sessionRestore.restore(closed[0]))
+ if chrome.sessions
+ chrome.sessions.restore(null, (restoredSession) -> callback())
else
# TODO(ilya): Should this be getLastFocused instead?
chrome.windows.getCurrent((window) ->