diff --git a/PageSaver/pageSaver.js b/PageSaver/pageSaver.js index 3794373..22bf33b 100644 --- a/PageSaver/pageSaver.js +++ b/PageSaver/pageSaver.js @@ -6,7 +6,7 @@ const userAgent = require('user-agents'); (async () => { const url = process.argv[2]; - const binary = argv[3]; + const binary = process.argv[3]; const browser = await puppeteer.launch({ executablePath: binary }); const page = await browser.newPage(); await page.setUserAgent(userAgent.random().toString());