Skip to content

Commit

Permalink
fix: remove default execPath and use puppeteer
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Mellor committed Jan 27, 2023
1 parent 9320be2 commit 3373f18
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from "fs-extra";
import puppeteer from "puppeteer-core";
import puppeteer from "puppeteer";
import path from "path";

export async function fit(srcs, dests, options = { silent: false }){
Expand All @@ -13,8 +13,7 @@ export async function fit(srcs, dests, options = { silent: false }){

let opts = Object.assign({
puppeteer: {
args: ['--headless', '--no-sandbox', '--disable-gpu', '--disable-dev-shm-usage'],
executablePath: "/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
args: ['--headless', '--no-sandbox', '--disable-gpu', '--disable-dev-shm-usage']
}
}, options);

Expand Down

0 comments on commit 3373f18

Please sign in to comment.