Skip to content

Commit 2211d78

Browse files
committed
fix: Adjust if formatting
1 parent 6a6bd73 commit 2211d78

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/checks/visibility/hidden-content.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
const whitelist = ['SCRIPT', 'HEAD', 'TITLE', 'NOSCRIPT', 'STYLE', 'TEMPLATE'];
2-
if (
3-
!whitelist.includes(node.tagName.toUpperCase()) &&
4-
axe.commons.dom.hasContent(virtualNode)
5-
) {
2+
if (!whitelist.includes(node.tagName.toUpperCase()) &&
3+
axe.commons.dom.hasContent(virtualNode)) {
64

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

0 commit comments

Comments
 (0)