Skip to content

Commit 0b22448

Browse files
committed
Skip selector calculation of non-violation results
1 parent 28db0b7 commit 0b22448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function checkAndReport (options, node) {
1313
nodes.push(node)
1414
let deferred = createDeferred()
1515

16-
axeCore.run(document, { reporter: 'v2' }, (error, results) => {
16+
axeCore.run(document, { reporter: 'v2', resultTypes: ['violations'] }, (error, results) => {
1717
if (error) deferred.reject(error)
1818
if (!results) return
1919
if (JSON.stringify(results.violations) === lastNotification) return

0 commit comments

Comments
 (0)