Skip to content

Commit

Permalink
Extra safe check for annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Aug 7, 2023
1 parent 8270abc commit af518ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/plugins/graphite/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ export default class GraphitePlugin extends SitespeedioPlugin {
this.receivedTypesThatFireAnnotations[message.url] ===
this.messageTypesToFireAnnotations.length &&
this.resultUrls.hasBaseUrl() &&
this.sendAnnotation
this.sendAnnotation &&
(message.type === 'browsertime.pageSummary' ||
message.type === 'webpagetest.pageSummary')
) {
this.receivedTypesThatFireAnnotations[message.url] = 0;
const absolutePagePath = this.resultUrls.absoluteSummaryPagePath(
Expand Down

0 comments on commit af518ae

Please sign in to comment.