Skip to content

Commit

Permalink
Use Chromium on Windows and macOS Big Sur instead of Webkit browser
Browse files Browse the repository at this point in the history
  • Loading branch information
younglim committed Apr 14, 2023
1 parent 367da2c commit a2d015e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions playwrightAxeGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit a2d015e

Please sign in to comment.