Skip to content

Commit

Permalink
Merge pull request #320 from BloomBooks/nonDefaultInitialLang
Browse files Browse the repository at this point in the history
Set correct visibility when initial lang is not default (BL-13318) (#320)
  • Loading branch information
StephenMcConnel authored Sep 16, 2024
2 parents ac0577e + fa68f96 commit 36b1e5d
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 36b1e5d

Please sign in to comment.