Skip to content

Commit

Permalink
Merge pull request #352 from ttys0dev/appelate-attachment
Browse files Browse the repository at this point in the history
Add additional appelate attachment page detection logic
  • Loading branch information
ERosendo authored Dec 1, 2023
2 parents 8c0ca0d + 5db758a commit eae1c07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Changes:
- None yet

Fixes:
- None yet
- Add additional appelate attachment page detection logic([#352](https://github.com/freelawproject/recap-chrome/pull/352))

For developers:
- Nothing yet
Expand Down
6 changes: 5 additions & 1 deletion src/appellate/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ let APPELLATE = {
// Returns true if this is a "Attachment page"
isAttachmentPage: () => {
let form = document.querySelector("form[name='dktEntry']");
return form !== null;
if (form !== null)
return true;
let table = document.getElementsByTagName("table");
let header = table.length ? table[0].getElementsByTagName("th") : false;
return (header && header.length) ? header[0].textContent.includes('Documents are attached to this filing') : false;
},

// Returns true if this is a "Download Confirmation page"
Expand Down

0 comments on commit eae1c07

Please sign in to comment.