File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## ** v5.0.1** - 14th Oct, 2020
8
+
9
+ - Update selector path logic as per GitHub UI changes
10
+
7
11
## ** v5.0.0** - 3rd Aug, 2020
8
12
9
13
- Support Firefox browser 🎉
Original file line number Diff line number Diff line change @@ -51,9 +51,14 @@ let handlersUtil = {
51
51
) ;
52
52
53
53
let actualDataIndex = 0 ;
54
+ let startIndex = 0 ;
54
55
55
- for ( var i = 0 ; i < containerItems . length ; i ++ ) {
56
- const commitElem = containerItems [ i ] . querySelector ( '.commit-message' ) ;
56
+ if ( window . location . href && window . location . href . indexOf ( 'tree/' + commonUtil . getBranch ( ) ) > - 1 ) {
57
+ startIndex = 1 ;
58
+ }
59
+
60
+ for ( var i = startIndex ; i < containerItems . length ; i ++ ) {
61
+ const commitElem = containerItems [ i ] . querySelector ( 'div:nth-of-type(3)' ) ;
57
62
58
63
if ( commitElem ) {
59
64
containerItems [ i ] . querySelector ( 'div:nth-of-type(2)' ) . classList . remove ( 'col-md-2' , 'mr-3' ) ;
You can’t perform that action at this time.
0 commit comments