Skip to content

Commit

Permalink
fix: 修复puppeteer目录寻找不正确的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Oct 29, 2017
1 parent 1e76da8 commit 74a1f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ process.on('unhandledRejection', (reason, p) => {
console.error('Unhandled Rejection at:', p, 'reason:', reason);
});

const puppeteerModulePath = path.join(process.cwd(), 'node_modules', 'puppeteer');
const puppeteerModulePath = path.join(__dirname, 'node_modules', 'puppeteer');
const localChromiumPath = path.join(puppeteerModulePath, '.local-chromium');

try {
Expand Down

0 comments on commit 74a1f87

Please sign in to comment.