Skip to content

Commit 7409e25

Browse files
committed
Fix examples in README
1 parent ec73993 commit 7409e25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ yarn add -D axe-core vue-axe
1919
import Vue from 'vue'
2020

2121
if (process.env.NODE_ENV !== 'production') {
22-
const VueAxe = require('vue-axe')
22+
const VueAxe = require('vue-axe').default
2323
Vue.use(VueAxe)
2424
}
2525
```
@@ -42,7 +42,7 @@ The `customResultHandler` config property expects a callback like the `axe.run()
4242
import Vue from 'vue'
4343

4444
if (process.env.NODE_ENV !== 'production') {
45-
const VueAxe = require('vue-axe')
45+
const VueAxe = require('vue-axe').default
4646
Vue.use(VueAxe, {
4747
customResultHandler: (error, results) => {
4848
results.violations.forEach(violation => console.log(violation))
@@ -91,7 +91,7 @@ Create plugin file `plugins/axe.js`
9191
import Vue from 'vue'
9292

9393
if (process.env.NODE_ENV !== 'production') {
94-
const VueAxe = require('vue-axe')
94+
const VueAxe = require('vue-axe').default
9595
Vue.use(VueAxe)
9696
}
9797

0 commit comments

Comments
 (0)