aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authormrmr19932017-02-08 17:58:40 +0000
committermrmr19932017-02-08 17:58:40 +0000
commit32f4a88943bb9bae5398241937f298287ad39417 (patch)
treed1b661d485853efad0b89dc07215abe6a08e62fb /background_scripts
parentb12ed93d0b96df90511d3331e8a5f54e7b1b7da4 (diff)
downloadvimium-32f4a88943bb9bae5398241937f298287ad39417.tar.bz2
Stop using deprecated tabs.getSelected; switch to tabs.query
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 72f87a7e..13f88157 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -467,7 +467,7 @@ do showUpgradeMessage = ->
Settings.set "previousVersion", currentVersion
chrome.notifications.onClicked.addListener (id) ->
if id == notificationId
- chrome.tabs.getSelected null, (tab) ->
+ chrome.tabs.query { active: true, currentWindow: true }, ([tab]) ->
TabOperations.openUrlInNewTab {tab, tabId: tab.id, url: "https://github.com/philc/vimium#release-notes"}
else
# We need to wait for the user to accept the "notifications" permission.