File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -467,7 +467,7 @@ do showUpgradeMessage = ->
467
467
Settings .set " previousVersion" , currentVersion
468
468
chrome .notifications .onClicked .addListener (id) ->
469
469
if id == notificationId
470
- chrome .tabs .getSelected null , ( tab ) ->
470
+ chrome .tabs .query { active : true , currentWindow : true }, ([ tab] ) ->
471
471
TabOperations .openUrlInNewTab {tab, tabId : tab .id , url : " https://github.com/philc/vimium#release-notes" }
472
472
else
473
473
# We need to wait for the user to accept the "notifications" permission.
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ initOptionsPage = ->
265
265
maintainLinkHintsView ()
266
266
267
267
initPopupPage = ->
268
- chrome .tabs .getSelected null , ( tab ) ->
268
+ chrome .tabs .query { active : true , currentWindow : true }, ([ tab] ) ->
269
269
exclusions = null
270
270
document .getElementById (" optionsLink" ).setAttribute " href" , chrome .runtime .getURL (" pages/options.html" )
271
271
You can’t perform that action at this time.
0 commit comments