sisa-crawl/launchbrowser.js

9 lines
290 B
JavaScript
Raw Permalink Normal View History

const puppeteer = require("puppeteer");
async function launchBrowser() {
return puppeteer.launch({
executablePath: process.env.CHROMIUM_PATH || 'C:\\Users\\bdaneels\\Documents\\chromium\\chrome-win\\chrome.exe',
headless: false
});
}
module.exports = launchBrowser;