Skip to content

Commit 9e6f420

Browse files
committed
fix
1 parent e7a1fdd commit 9e6f420

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/javascript/src/addons/webVitals.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class WebVitalsTracker {
6161
const formatted = this.formatValue(name, value);
6262
const thresholds = METRIC_THRESHOLDS[name];
6363
const thresholdNote = thresholds
64-
? `, threshold: ${this.formatValue(name, thresholds[1])}`
64+
? `, poor > ${this.formatValue(name, thresholds[1])}`
6565
: '';
6666

6767
this.callbacks.sendEvent(
@@ -73,7 +73,7 @@ export class WebVitalsTracker {
7373
delta,
7474
id,
7575
navigationType,
76-
url: location.href,
76+
url: location.origin + location.pathname,
7777
},
7878
);
7979
}

0 commit comments

Comments
 (0)