Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mokimo committed Jun 10, 2024
1 parent e6d758b commit 162aeec
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion libs/utils/samplerum.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export function sampleRUM(checkpoint, data = {}) {
// eslint-disable-next-line object-curly-newline, max-len
window.hlx.rum = { weight, id, random, isSelected, firstReadTime, sampleRUM, sanitizeURL: urlSanitizers[window.hlx.RUM_MASK_URL || 'path'], rumSessionStorage };
}
if (!window.hlx?.rum) return;
const { id, firstReadTime } = window.hlx.rum;
const weight404 = 10;
const isSelected404 = checkpoint === '404' && (Math.random() * weight404 < 1);
Expand Down

0 comments on commit 162aeec

Please sign in to comment.