From ff9e2fc7f1e578ed47a65dc001ca4fdd7a66a734 Mon Sep 17 00:00:00 2001 From: Agrendalath Date: Fri, 31 May 2024 15:46:57 +0200 Subject: [PATCH] fixup! fix: receive XBlock visibility from the Learning MFE --- lms/static/completion/js/ViewedEvent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/static/completion/js/ViewedEvent.js b/lms/static/completion/js/ViewedEvent.js index 848312e05eee..5e45bb34174c 100644 --- a/lms/static/completion/js/ViewedEvent.js +++ b/lms/static/completion/js/ViewedEvent.js @@ -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) => {