Skip to content

Commit f70c326

Browse files
Fix performance navigation check for page reload
1 parent f90015d commit f70c326

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

injected/src/features/breakage-reporting.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export default class BreakageReporting extends ContentFeature {
2424
if (getReloaded) {
2525
result.pageReloaded =
2626
(window.performance.navigation && window.performance.navigation.type === 1) ||
27-
window.performance
28-
.getEntriesByType('navigation')
27+
/** @type {PerformanceNavigationTiming[]} */
28+
(window.performance.getEntriesByType('navigation'))
2929
.map((nav) => nav.type)
3030
.includes('reload');
3131
}

0 commit comments

Comments
 (0)