Skip to content

Commit

Permalink
fix(handlerUtil): update code as per GitHub UI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
softvar committed Oct 13, 2020
1 parent eabc0ab commit 566fe54
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/utils/handlersUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,14 @@ let handlersUtil = {
);

let actualDataIndex = 0;
let startIndex = 0;

for (var i = 0; i < containerItems.length; i++) {
const commitElem = containerItems[i].querySelector('.commit-message');
if (window.location.href && window.location.href.indexOf('tree/' + commonUtil.getBranch()) > -1) {
startIndex = 1;
}

for (var i = startIndex; i < containerItems.length; i++) {
const commitElem = containerItems[i].querySelector('div:nth-of-type(3)')

if (commitElem) {
containerItems[i].querySelector('div:nth-of-type(2)').classList.remove('col-md-2', 'mr-3');
Expand Down

0 comments on commit 566fe54

Please sign in to comment.