Skip to content

Commit 7039c57

Browse files
committed
force_caption2
1 parent efcab6a commit 7039c57

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ui/src/SubScreenPage.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,10 @@ export const SubScreenInner: React.FC = () => {
6767
const timer = useLightningTimer(screen?.lightning_timer);
6868

6969
const infoMode = ((): InfoMode => {
70+
if (searchParams.has("force_caption")) return "caption";
7071
if (timer?.shouldVisible) return "lightning_timer";
7172
if (screen?.intermission) return "announcement";
72-
if (
73-
screen?.subscreen_caption &&
74-
(currentSession !== undefined || searchParams.has("force_caption"))
75-
) {
73+
if (screen?.subscreen_caption && currentSession !== undefined) {
7674
return "caption";
7775
}
7876
return "announcement";

0 commit comments

Comments
 (0)