Skip to content

Commit e4a539c

Browse files
committed
fix(facets): fix viewmedia checkpoint name
1 parent fc42bdb commit e4a539c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

facets.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,15 @@ export const facets = {
131131
.filter((s) => s))
132132
.pop() || [],
133133
),
134+
/**
135+
* Extracts the target of the media view event from the bundle. This
136+
* is typically the URL of an image or video, and the URL is stripped
137+
* of query parameters, hash, user, and password.
138+
* @param {Bundle} bundle the bundle of sampled rum events
139+
* @returns {string[]} a list of media targets
140+
*/
134141
mediaTarget: (bundle) => bundle.events
135-
.filter((evt) => evt.checkpoint === 'viewedia')
142+
.filter((evt) => evt.checkpoint === 'viewmedia')
136143
.map((evt) => evt.target)
137144
.filter((target) => target)
138145
.map((target) => {

0 commit comments

Comments
 (0)