Skip to content

Commit

Permalink
Merge pull request #249 from iuliag/fix-samplerum-always
Browse files Browse the repository at this point in the history
fix: sampleRUM always for checkpoint to be called even if RUM not selected
  • Loading branch information
trieloff authored Aug 22, 2023
2 parents 8841092 + fcca39d commit 3b370f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ node_modules/*

helix-importer-ui
.DS_Store
*.bak
*.bak
.idea
2 changes: 1 addition & 1 deletion scripts/lib-franklin.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export function sampleRUM(checkpoint, data = {}) {
};
sendPing(data);
if (sampleRUM.cases[checkpoint]) { sampleRUM.cases[checkpoint](); }
if (sampleRUM.always[checkpoint]) { sampleRUM.always[checkpoint](data); }
}
if (sampleRUM.always[checkpoint]) { sampleRUM.always[checkpoint](data); }
} catch (error) {
// something went wrong
}
Expand Down

0 comments on commit 3b370f3

Please sign in to comment.