Skip to content

Commit

Permalink
fix: Adjust if formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers committed Jul 7, 2017
1 parent 6a6bd73 commit 2211d78
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/checks/visibility/hidden-content.js
@@ -1,8 +1,6 @@
const whitelist = ['SCRIPT', 'HEAD', 'TITLE', 'NOSCRIPT', 'STYLE', 'TEMPLATE'];
if (
!whitelist.includes(node.tagName.toUpperCase()) &&
axe.commons.dom.hasContent(virtualNode)
) {
if (!whitelist.includes(node.tagName.toUpperCase()) &&
axe.commons.dom.hasContent(virtualNode)) {

const styles = window.getComputedStyle(node);
if (styles.getPropertyValue('display') === 'none') {
Expand Down

0 comments on commit 2211d78

Please sign in to comment.