From cb0143de40befff22bda439a0f317d462cec4f51 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 13 Aug 2023 13:59:23 +0100 Subject: [PATCH] Move cookie logic into cookie component --- src/pages/Results.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pages/Results.tsx b/src/pages/Results.tsx index b1bc444..00c3004 100644 --- a/src/pages/Results.tsx +++ b/src/pages/Results.tsx @@ -57,8 +57,7 @@ import { determineAddressType, AddressType } from 'utils/address-type-checker'; import useMotherHook from 'hooks/motherOfAllHooks'; import { getLocation, ServerLocation, - parseCookies, Cookie, - parseRobotsTxt, + Cookie, applyWhoIsResults, Whois, parseShodanResults, ShodanResults } from 'utils/result-processor'; @@ -187,8 +186,7 @@ const Results = (): JSX.Element => { updateLoadingJobs, addressInfo: { address, addressType, expectedAddressTypes: urlTypeOnly }, fetchRequest: () => fetch(`${api}/cookies?url=${address}`) - .then(res => parseJson(res)) - .then(res => parseCookies(res.cookies)), + .then(res => parseJson(res)), }); // Fetch and parse crawl rules from robots.txt