From 9f1349ec38dc16300316a0f44a0dabc5e73c23cb Mon Sep 17 00:00:00 2001 From: devland Date: Tue, 8 Oct 2024 09:33:23 +0200 Subject: [PATCH] JI-6710 optimize math display --- src/scripts/navigation-line.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/navigation-line.js b/src/scripts/navigation-line.js index 3efcfedb..21bbfb75 100644 --- a/src/scripts/navigation-line.js +++ b/src/scripts/navigation-line.js @@ -211,7 +211,7 @@ const NavigationLine = (function ($) { const hasKeyWords = slide.keywords && slide.keywords.length > 0; if (hasKeyWords) { - return slide.keywords[0].main; + return $('.h5p-keywords-wrapper li.h5p-current span.h5p-keyword-title').html(); } else if (this.isSummarySlide(slideNumber)) { return this.cp.l10n.summary; @@ -587,7 +587,7 @@ const NavigationLine = (function ($) { // Get current keyword if (currentSlide && currentSlide.keywords && currentSlide.keywords[0]) { - keywordString = currentSlide.keywords[0].main; + keywordString = $('.h5p-keywords-wrapper li.h5p-current span.h5p-keyword-title').html(); } // Summary slide keyword