Skip to content

Commit

Permalink
Revert "local file patch (#440)"
Browse files Browse the repository at this point in the history
This reverts commit 8d4bcfb.
  • Loading branch information
freekmurze authored Nov 11, 2020
1 parent 7793556 commit 57d4efb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions bin/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 57d4efb

Please # to comment.