Skip to content

Commit

Permalink
Set correct visibility when initial lang is not default (BL-13318)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnThomson committed Sep 12, 2024
1 parent ac0577e commit fa68f96
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bloom-player-core.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1330,12 +1330,14 @@ export class BloomPlayerCore extends React.Component<IProps, IState> {
continue;
}
if (firstRunForThisBook) {
// Assume Bloom-desktop got it right. Save the classes it set.
// Assume Bloom-desktop got it right for when usingDefaultLang. Save the classes it set.
// (But keep going...the first run might NOT be usingDefaultLang.)
divElement.setAttribute(
"data-original-class",
divElement.getAttribute("class") || ""
);
} else if (usingDefaultLang) {
}
if (usingDefaultLang) {
// go back to the original classes from bloom desktop
divElement.setAttribute(
"class",
Expand Down

0 comments on commit fa68f96

Please sign in to comment.