Skip to content

Commit

Permalink
JI-6710 optimize math display
Browse files Browse the repository at this point in the history
  • Loading branch information
devland committed Oct 8, 2024
1 parent 8d027a6 commit 9f1349e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/navigation-line.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9f1349e

Please sign in to comment.