We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2b9a6d commit bf87ecfCopy full SHA for bf87ecf
src/index.js
@@ -7,6 +7,11 @@ export default function install (Vue, options) {
7
// Browser only
8
if (typeof window === 'undefined') return
9
10
+ options = {
11
+ clearConsoleOnUpdate: true,
12
+ ...options
13
+ }
14
+
15
// Configure the format data
16
axeCore.configure({ ...OPTIONS_DEFAULT.config, ...options.config })
17
@@ -15,7 +20,10 @@ export default function install (Vue, options) {
20
methods: {
21
clearAxeConsole () {
22
resetCache()
18
- console.clear()
23
24
+ if (options.clearConsoleOnUpdate) {
25
+ console.clear()
26
19
27
},
28
debounceAxe: debounce(function () {
29
this.clearAxeConsole()
0 commit comments