nondanee / puppeteer-electron

Use Puppeteer's API with Electron
https://www.npmjs.com/package/puppeteer-electron
MIT License
23 stars 9 forks source link

The normal URL cannot be started after packaging #5

Open iLoveForDi opened 3 years ago

iLoveForDi commented 3 years ago

Local debugging can evoke normal pages,but the page cannot be started after packaging ` const puppeteer = require('puppeteer-electron')
const pupe = async (url, configInfo) => { try { console.log('configInfo:', configInfo); const browser = await puppeteer.launch({ headless:false, args: [ '--disable-web-security' ], }) // default is true const pages = await browser.pages() const page = pages[0]

    await page.goto(url)
} catch (error) {
    console.log('pupe-error:', error);
}

} `