Skip to content

Commit

Permalink
Fixes initialize bug #4
Browse files Browse the repository at this point in the history
  • Loading branch information
pbarnum committed Aug 31, 2018
1 parent dedccdf commit d8dc158
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions git-diff-flex.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@
// The main program... just mark the tables
findTables();

// Find tables when user clicks on the "files" sub-nav tab
let subNav = document.querySelector('a.tabnav-tab[href$="files"]');
if (subNav) {
subNav.addEventListener('click', () => {
let to = setTimeout(() => {
if (document.getElementById('files_bucket')) {
findTables();
clearTimeout(to);
}
}, 100);
});
}

/**
* Recalculate the handle on window resize.
*/
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Git Diff Flex",
"version": "1.0.2",
"version": "1.0.3",
"description": "Git Diff Flex adds a draggable pane bezel between two files when comparing diffs! Currently only for github.com.",
"permissions": [
"activeTab",
Expand Down

0 comments on commit d8dc158

Please sign in to comment.