Executable in dotenv
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-02-18 14:18:01 +03:00
parent 4879afb03a
commit b78238ef76
5 changed files with 21 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
require('dotenv').config()
const puppeteer = require('puppeteer')
const items = require('./items')
const output = require('./output')
@@ -12,7 +13,9 @@ async function initPuppeteer (page) {
}
(async () => {
const browser = await puppeteer.launch()
const browser = await puppeteer.launch({
executablePath: process.env.EXECUTABLE
})
const page = await browser.newPage()
await initPuppeteer(page)