From 32f4a88943bb9bae5398241937f298287ad39417 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Wed, 8 Feb 2017 17:58:40 +0000 Subject: Stop using deprecated tabs.getSelected; switch to tabs.query --- background_scripts/main.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'background_scripts') 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. -- cgit v1.2.3