From 57d4efbec696eb457df362454904242bc49e64d6 Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Wed, 11 Nov 2020 23:17:11 +0100 Subject: [PATCH] Revert "local file patch (#440)" This reverts commit 8d4bcfb1ff609921007f3fc11d80fcdad35598ac. --- bin/browser.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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(() => {