From a2d015e6b6bfcfeb89d8464b3bafeccd1d719c7b Mon Sep 17 00:00:00 2001 From: younglim Date: Fri, 14 Apr 2023 23:32:53 +0800 Subject: [PATCH] Use Chromium on Windows and macOS Big Sur instead of Webkit browser --- playwrightAxeGenerator.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/playwrightAxeGenerator.js b/playwrightAxeGenerator.js index 7a673b76..11dd1f72 100644 --- a/playwrightAxeGenerator.js +++ b/playwrightAxeGenerator.js @@ -267,9 +267,8 @@ const processPage = async page => { let browser = "webkit"; let userAgentOpts = null; - // Compatibility workaround for macOS Big Sur - if (os.platform() ==='darwin' && os.release().startsWith("20.")) { - console.log(" ⚠️ Running custom scans is not fully supported on macOS Big Sur. Please upgrade to Monterey (12.0 and above) for a more reliable experience."); + // Performance workaround for macOS Big Sur and Windows to force Chromium browser instead of Webkit + if ((os.platform() ==='darwin' && os.release().startsWith("20.")) || os.platform() ==='win32' ) { browser = "chromium"; if (deviceChosen === 'Mobile') {