You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The extension inserts the banner and the button to create an alert even when those elements are already created on the docket query page. Here's a picture of the bug:
Problem
The issue appears to be related to the PACER.handleDocketQueryUrl() method. This method is called from content_delegate.js and inserts the elements after the request to get docket availability (getAvailabilityForDocket) is completed but there's no logic to check if the elements are already on the page, so if this method is called twice or more times it will keep inserting new banners to the body of the page.
Possible Solution
We could insert logic to check if the banners exist on the page and then remove the old ones to let the extension inserts the new ones. The logic should be something like this:
// get the banner on the pageletbanners=document.querySelectorAll('.recap-banner')// Remove all HTML elements that the extension inserted banners.forEach(banner=>{banner.remove();});
The text was updated successfully, but these errors were encountered:
The extension inserts the banner and the button to create an alert even when those elements are already created on the docket query page. Here's a picture of the bug:
Problem
The issue appears to be related to the PACER.handleDocketQueryUrl() method. This method is called from content_delegate.js and inserts the elements after the request to get docket availability (getAvailabilityForDocket) is completed but there's no logic to check if the elements are already on the page, so if this method is called twice or more times it will keep inserting new banners to the body of the page.
Possible Solution
We could insert logic to check if the banners exist on the page and then remove the old ones to let the extension inserts the new ones. The logic should be something like this:
The text was updated successfully, but these errors were encountered: