From 854c437c08b6c946de5048604d045ef74473d8ea Mon Sep 17 00:00:00 2001 From: Gleb Khmyznikov Date: Mon, 4 Dec 2023 14:32:52 +0100 Subject: [PATCH] minor change --- Report/lighthouse/lighthouse.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Report/lighthouse/lighthouse.ts b/Report/lighthouse/lighthouse.ts index 2388a50..d869a0c 100644 --- a/Report/lighthouse/lighthouse.ts +++ b/Report/lighthouse/lighthouse.ts @@ -137,8 +137,9 @@ async function execute() { }); page.on('request', (req) => { - if (SKIP_RESOURCES.some((type) => req.resourceType() == type)){ - switch (req.resourceType()) { + const resourceType = req.resourceType(); + if (SKIP_RESOURCES.some((type) => resourceType == type)){ + switch (resourceType) { case 'image': req.respond( {