Skip to content

Commit d3b565d

Browse files
committed
browser path
1 parent af0c60c commit d3b565d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/run-lighthouse.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ export const getBrowserPath = async () => {
88
headless: "new",
99
args: ['--no-sandbox', '--disable-gpu', '--disable-dev-shm-usage']
1010
});
11-
return browser.browserPath;
11+
const path = browser.process().spawnfile;
12+
await browser.close();
13+
console.log('got browser path : ', path);
14+
return path;
1215
};
1316

1417
export const runLighthouse = async (browserPath, url, settings) => {

0 commit comments

Comments
 (0)