Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/playwright/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class AxeBuilder {
private includes: SerialSelectorList;
private excludes: SerialSelectorList;
private option: RunOptions;
private source: string;
private axeSource: string | undefined;
private legacyMode = false;
private errorUrl: string;

Expand All @@ -35,7 +35,7 @@ export default class AxeBuilder {
this.includes = [];
this.excludes = [];
this.option = {};
this.source = axeSource || source;
this.axeSource = axeSource;
this.errorUrl =
'https://github.com/dequelabs/axe-core-npm/blob/develop/packages/playwright/error-handling.md';
}
Expand Down Expand Up @@ -210,7 +210,7 @@ export default class AxeBuilder {
*/

private script(): string {
return this.source;
return this.axeSource || source;
}

private async runLegacy(context: SerialContextObject): Promise<AxeResults> {
Expand Down