Skip to content

Commit

Permalink
Fixes backtick tab switching
Browse files Browse the repository at this point in the history
Looks like github changed the class this was looking for on the tabs.
This may be too precise with the selectors but it's working and it's a
feature I've been missing.
  • Loading branch information
TheDudeWithTheThing committed Aug 18, 2016
1 parent 402f56f commit 82bb174
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pullrequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ chrome.storage.sync.get({url: '', saveCollapsedDiffs: true, tabSwitchingEnabled:
return;
}

var $pullRequestTabs = $('.js-pull-request-tab');
var selectedTabIndex = $('.js-pull-request-tab.selected').index();
var $pullRequestTabs = $('nav.tabnav-tabs a.tabnav-tab');
var $selectedTab = $('nav.tabnav-tabs a.tabnav-tab.selected');
var selectedTabIndex = $pullRequestTabs.index( $selectedTab );

if (e.shiftKey) {
// Making this work like it would in other apps, where the shift
Expand Down

0 comments on commit 82bb174

Please sign in to comment.