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 8fc3608
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## **v5.0.1** - 14th Oct, 2020

- Update selector path logic as per GitHub UI changes

## **v5.0.0** - 3rd Aug, 2020

- Support Firefox browser 🎉
Expand Down
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 8fc3608

Please sign in to comment.