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 f1d5021
Showing 1 changed file with 5 additions and 1 deletion.
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 f1d5021

Please sign in to comment.