Skip to content

Commit

Permalink
Update searchJumper.user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hoothin committed Sep 24, 2024
1 parent ccef885 commit 59f47cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion searchJumper.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -5521,7 +5521,7 @@

anylizeDomWithTextPos(dom, result) {
if (!result) result = {text: "", data:{}};
if (!dom || !dom.childNodes || !dom.childNodes.length) {
if (!dom || !dom.childNodes || !dom.childNodes.length || (!dom.offsetParent && !dom.offsetHeight)) {
return result;
}
dom.childNodes.forEach(ele => {
Expand Down

0 comments on commit 59f47cd

Please sign in to comment.