From e6e914cefef4f24bbdd7771c8cacab909aedfc75 Mon Sep 17 00:00:00 2001 From: idk Date: Mon, 24 May 2021 15:40:35 -0400 Subject: [PATCH] Check proxy before extension URL --- proxy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy.js b/proxy.js index b0f2c01..1399c46 100644 --- a/proxy.js +++ b/proxy.js @@ -188,8 +188,6 @@ var handleContextProxyRequest = async function (requestDetails) { port: getPort(), }; return proxy; - } else if (extensionHost(requestDetails)) { - return; } else if (i2pHost(requestDetails.url)) { var tab = tabGet(requestDetails.tabId); requestDetails.tabId = tab; @@ -197,6 +195,8 @@ var handleContextProxyRequest = async function (requestDetails) { var proxy = await context.then(handleProxyRequest); //console.log('(proxy)Returning I2P Proxy', proxy); return proxy; + } else if (extensionHost(requestDetails)) { + return; } else { var tab = tabGet(requestDetails.tabId); var context = tab.then(contextGet);