Skip to content

Commit

Permalink
fix(navigation): use correct buffered perf observer
Browse files Browse the repository at this point in the history
Co-authored-by: Francisco Chicharro <43381734+chicharr@users.noreply.github.com>
  • Loading branch information
trieloff and chicharr authored Nov 17, 2023
1 parent 70f622a commit 39ed811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ navigate(document.referrer);

new PerformanceObserver((list) => list
.getEntries().map((entry) => navigate(document.referrer, entry.type)))
.observe({ entryTypes: ['navigation'], buffered: true });
.observe({ type: 'navigation', buffered: true });

sampleRUM.targetselector = (element) => {
let value = element.getAttribute('href') || element.currentSrc || element.getAttribute('src')
Expand Down

0 comments on commit 39ed811

Please sign in to comment.