Skip to content

Commit

Permalink
multi
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Jan 15, 2024
1 parent 67c90f5 commit 0e27ca0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/plugins/pagexray/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,13 @@ export default class PageXrayPlugin extends SitespeedioPlugin {
for (let summary of pageSummary) {
// The group can be different so take it per url
const myGroup = parse(summary.url).hostname;
this.pageXrayAggregator.summarizePerUrl(summary.url);
if (sentURL[summary.url]) {
sentURL[summary.url] += 1;
} else {
sentURL[summary.url] = 1;
summary.statistics = this.pageXrayAggregator.summarizePerUrl(
summary.url
);
queue.postMessage(
make('pagexray.pageSummary', summary, {
url: summary.url,
Expand Down

0 comments on commit 0e27ca0

Please sign in to comment.