From 2fae382a126a27b34e4fc1d9ad5b1d68eff8be63 Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Thu, 21 Jan 2021 10:56:06 +1100 Subject: [PATCH] Update driver.js --- src/drivers/webextension/js/driver.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/drivers/webextension/js/driver.js b/src/drivers/webextension/js/driver.js index 5bbfaeac0..2ece03254 100644 --- a/src/drivers/webextension/js/driver.js +++ b/src/drivers/webextension/js/driver.js @@ -267,13 +267,7 @@ const Driver = { ) }) - if ( - headers['content-type'] && - (/\/x?html/.test(headers['content-type'][0]) || - /\/plain/.test(headers['content-type'][0])) - ) { - await Driver.onDetect(request.url, analyze({ headers })) - } + await Driver.onDetect(request.url, analyze({ headers })) } } catch (error) { Driver.error(error)