Skip to content

Commit

Permalink
Stop using deprecated tabs.getSelected; switch to tabs.query
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmr1993 committed Feb 8, 2017
1 parent b12ed93 commit 32f4a88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion background_scripts/main.coffee
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pages/options.coffee
Expand Up @@ -265,7 +265,7 @@ initOptionsPage = ->
maintainLinkHintsView()

initPopupPage = ->
chrome.tabs.getSelected null, (tab) ->
chrome.tabs.query { active: true, currentWindow: true }, ([tab]) ->
exclusions = null
document.getElementById("optionsLink").setAttribute "href", chrome.runtime.getURL("pages/options.html")

Expand Down

0 comments on commit 32f4a88

Please sign in to comment.