diff --git a/bin/browser.js b/bin/browser.js index 8a7d892b..a1e837d4 100755 --- a/bin/browser.js +++ b/bin/browser.js @@ -168,13 +168,7 @@ const callChrome = async pup => { requestOptions.waitUntil = request.options.waitUntil; } - if(request.url.trim().toLowerCase().substring(0,4) === 'file'){ - await page.setContent(fs.readFileSync(new URL(request.url),'utf-8'),requestOptions); - } - else - { - await page.goto(request.url, requestOptions); - } + await page.goto(request.url, requestOptions); if (request.options && request.options.disableImages) { await page.evaluate(() => {