Skip to content

Commit

Permalink
Add additional appelate attachment page detection logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ttys0dev committed Dec 1, 2023
1 parent 8c0ca0d commit 5db758a
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 5db758a

Please sign in to comment.