Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
khmyznikov committed Dec 4, 2023
1 parent 256f462 commit 854c437
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Report/lighthouse/lighthouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down

0 comments on commit 854c437

Please sign in to comment.