File tree 10 files changed +10
-7
lines changed 10 files changed +10
-7
lines changed Original file line number Diff line number Diff line change
1
+ ### v2.0.20
2
+ * Fix bug causing some branches not to show
3
+
1
4
### v2.0.19
2
5
* Accommodate new GitHub layout
3
6
* Support multiprocess for Firefox
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " octotree" ,
3
- "version" : " 2.0.19 " ,
3
+ "version" : " 2.0.20 " ,
4
4
"description" : " Code tree for GitHub and GitLab" ,
5
5
"main" : " inject.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -152,15 +152,15 @@ class GitHub extends Adapter {
152
152
}
153
153
154
154
// Get branch by inspecting page, quite fragile so provide multiple fallbacks
155
- const GH_BRANCH_SEL_1 = '[aria-label="Switch branches or tags"] .css-truncate-target '
155
+ const GH_BRANCH_SEL_1 = '[aria-label="Switch branches or tags"]'
156
156
const GH_BRANCH_SEL_2 = '.repo-root a[data-branch]'
157
157
const GH_BRANCH_SEL_3 = '.repository-sidebar a[aria-label="Code"]'
158
158
const GH_BRANCH_SEL_4 = '.current-branch'
159
159
const GH_BRANCH_SEL_5 = 'link[title*="Recent Commits to"]'
160
160
161
161
const branch =
162
162
// Detect branch in code page
163
- $ ( GH_BRANCH_SEL_1 ) . text ( ) || $ ( GH_BRANCH_SEL_2 ) . data ( 'branch' ) ||
163
+ $ ( GH_BRANCH_SEL_1 ) . attr ( 'title' ) || $ ( GH_BRANCH_SEL_2 ) . data ( 'branch' ) ||
164
164
// Non-code page (old GH design)
165
165
( $ ( GH_BRANCH_SEL_3 ) . attr ( 'href' ) || ' ' ) . match ( / ( [ ^ \/ ] + ) / g) [ 3 ] ||
166
166
// Non-code page: commit page
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Octotree" ,
3
- "version" : " 2.0.19 " ,
3
+ "version" : " 2.0.20 " ,
4
4
"manifest_version" : 2 ,
5
5
"author" : " Buu Nguyen" ,
6
6
"description" : " Code tree for GitHub and GitLab" ,
Original file line number Diff line number Diff line change 9
9
"icon" : " resource://jid1-Om7eJGwA1U8Akg-at-jetpack/data/icons/icon48.png" ,
10
10
"icon64" : " resource://jid1-Om7eJGwA1U8Akg-at-jetpack/data/icons/icon64.png" ,
11
11
"license" : " MIT" ,
12
- "version" : " 2.0.19 " ,
12
+ "version" : " 2.0.20 " ,
13
13
"permissions" : {
14
14
"cross-domain-content" : [
15
15
" https://api.github.com" ,
Original file line number Diff line number Diff line change 13
13
<key >CFBundleInfoDictionaryVersion </key >
14
14
<string >6.0 </string >
15
15
<key >CFBundleShortVersionString </key >
16
- <string >2.0.19 </string >
16
+ <string >2.0.20 </string >
17
17
<key >CFBundleVersion </key >
18
- <string >2.0.19 </string >
18
+ <string >2.0.20 </string >
19
19
<key >Chrome </key >
20
20
<dict />
21
21
<key >Content </key >
You can’t perform that action at this time.
0 commit comments