Skip to content

Commit

Permalink
Always reset axe config
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuth committed Feb 12, 2024
1 parent 5e49b13 commit 428300d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/browser/AxePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,13 @@ function runAxe({
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore This function executes in a browser context.
return window.axeQueue.add(() => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore This function executes in a browser context.
window.axe.reset();
if (config) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore This function executes in a browser context.
window.axe.configure(config);
} else {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore This function executes in a browser context.
window.axe.reset();
}
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore This function executes in a browser context.
Expand Down

0 comments on commit 428300d

Please sign in to comment.