Skip to content

Commit bf87ecf

Browse files
committed
added a setting to not clear the console per run
1 parent b2b9a6d commit bf87ecf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ export default function install (Vue, options) {
77
// Browser only
88
if (typeof window === 'undefined') return
99

10+
options = {
11+
clearConsoleOnUpdate: true,
12+
...options
13+
}
14+
1015
// Configure the format data
1116
axeCore.configure({ ...OPTIONS_DEFAULT.config, ...options.config })
1217

@@ -15,7 +20,10 @@ export default function install (Vue, options) {
1520
methods: {
1621
clearAxeConsole () {
1722
resetCache()
18-
console.clear()
23+
24+
if (options.clearConsoleOnUpdate) {
25+
console.clear()
26+
}
1927
},
2028
debounceAxe: debounce(function () {
2129
this.clearAxeConsole()

0 commit comments

Comments
 (0)