1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-02-13 01:59:42 +00:00

Fix curly braces to comply with eslint rules (#141)

This commit is contained in:
Adrian Calinescu
2020-05-19 18:41:28 +03:00
committed by GitHub
parent 6132f895f3
commit fa310661e9
6 changed files with 103 additions and 64 deletions

View File

@@ -8,10 +8,12 @@ export function getPuppeteerChromiumPath() {
const win32_rex = /^.*?\\node_modules\\puppeteer\\\.local-chromium/;
const replaceRegex = process.platform === 'win32' ? win32_rex : macOS_Linux_rex;
if (!isPkg)
if (!isPkg) {
return puppeteer.executablePath();
}
return puppeteer
.executablePath()
const browserPath = puppeteer.executablePath()
.replace(replaceRegex, path.join(path.dirname(process.execPath), 'chromium'));
return browserPath;
}