use offsetHeight to check element visibility

jh-changes
Shin'ya Ueoka 7 years ago
parent 5d0c33c1a6
commit 2286448b68
  1. 1
      src/content/follow.js

@ -142,6 +142,7 @@ export default class Follow {
return style.display !== 'none' && return style.display !== 'none' &&
style.visibility !== 'hidden' && style.visibility !== 'hidden' &&
element.type !== 'hidden' && element.type !== 'hidden' &&
element.offsetHeight > 0 &&
Follow.inWindow(window, element); Follow.inWindow(window, element);
}); });
return filtered; return filtered;