File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,7 @@ import { axe } from "axe-core/axe.min.js";
2
2
import report from "./reporter" ;
3
3
4
4
export default function ( ) {
5
- const options = {
6
- "rules" : {
7
- "color-contrast" : { enabled : false } ,
8
- }
9
- } ;
10
-
11
- window . axe . a11yCheck ( document , options , ( results ) => {
5
+ window . axe . a11yCheck ( document , { } , ( results ) => {
12
6
report ( results ) ;
13
7
} ) ;
14
8
}
Original file line number Diff line number Diff line change 1
1
import request from "browser-request" ;
2
2
3
- const url = "https://beta.accesslint.com/api/v1/reports" ;
3
+ const url = "/access_lint/errors"
4
4
5
5
export default function ( message ) {
6
6
const violations = message . violations ;
@@ -11,10 +11,5 @@ export default function (message) {
11
11
url : url ,
12
12
json : message ,
13
13
} , function ( ) { } ) ;
14
-
15
- console . error (
16
- `AccessLint - ${ violations . length } accessibility violations:` ,
17
- violations
18
- ) ;
19
14
}
20
15
}
You can’t perform that action at this time.
0 commit comments