Skip to content

Commit 0182083

Browse files
committed
chore: clearConsole property in "$axe.run" method by default it will have the same value as the option "clearConsoleOnUpdate"
1 parent 362640f commit 0182083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default function install (Vue, options) {
4141

4242
// vue-axe methods in Vue Instance
4343
Vue.prototype.$axe = {
44-
run ({ clearConsole = true, element = document } = {}) {
44+
run ({ clearConsole = options.clearConsoleOnUpdate, element = document } = {}) {
4545
this.clearConsole(clearConsole)
4646
if (!clearConsole) resetLastNotification()
4747
Vue.nextTick().then(() => checkAndReport(options, element))

0 commit comments

Comments
 (0)