added check for undefined

This commit is contained in:
7h3Rabbit 2025-02-22 21:47:10 +01:00
parent eba5ab89b2
commit 950d598a54
1 changed files with 2 additions and 0 deletions

View File

@ -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;