From 950d598a541304a714aa025573aacffef218c554 Mon Sep 17 00:00:00 2001 From: 7h3Rabbit <62792609+7h3Rabbit@users.noreply.github.com> Date: Sat, 22 Feb 2025 21:47:10 +0100 Subject: [PATCH] added check for undefined --- lib/plugins/pagexray/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/plugins/pagexray/index.js b/lib/plugins/pagexray/index.js index 73990c41a..d5928fac5 100644 --- a/lib/plugins/pagexray/index.js +++ b/lib/plugins/pagexray/index.js @@ -81,6 +81,8 @@ export default class PageXrayPlugin extends SitespeedioPlugin { includeAssets: true, firstParty: this.options.firstParty ?? undefined }; + if (!message.data) break; + if (!config) break; const pageSummary = pagexray.convert(message.data, config); if (!pageSummary) break;