Skip to content

Commit

Permalink
fixup! fix: receive XBlock visibility from the Learning MFE
Browse files Browse the repository at this point in the history
  • Loading branch information
Agrendalath committed May 31, 2024
1 parent e4d1cc7 commit ff9e2fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lms/static/completion/js/ViewedEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ export class ViewedEventTracker {
});
}

/** Handle a visibilityStatus message from the Learning MFE. */
/** Handle a unit.visibilityStatus message from the Learning MFE. */
handleVisibilityMessage(event) {
if (event.data.type === 'visibilityStatus') {
if (event.data.type === 'unit.visibilityStatus') {
const { topPosition, viewportHeight } = event.data.data;

this.elementViewings.forEach((elv) => {
Expand Down

0 comments on commit ff9e2fc

Please sign in to comment.