diff --git a/kayle/lib/kayle.ts b/kayle/lib/kayle.ts index 0918493..4a23eb7 100644 --- a/kayle/lib/kayle.ts +++ b/kayle/lib/kayle.ts @@ -20,7 +20,7 @@ const audit = async (config: RunnerConfig): Promise => { window.origin = runOptions.origin; } // @ts-ignore - return await window.__a11y.run(runOptions); + return await window?.__a11y?.run(runOptions); }, { hideElements: config.hideElements, diff --git a/kayle/package.json b/kayle/package.json index 7a64c10..152325b 100644 --- a/kayle/package.json +++ b/kayle/package.json @@ -1,6 +1,6 @@ { "name": "kayle", - "version": "0.8.47", + "version": "0.8.48", "description": "Extremely fast and accurate accessibility engine built for any headless tool like playwright or puppeteer.", "main": "./build/index.js", "keywords": [