Skip to content

Commit

Permalink
improve variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
stonko1994 committed Jan 17, 2025
1 parent 51d0563 commit 79a3b81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ts/UIFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ function uiLayout(config: UIConfig) {
],
});

const conditionalElements = [
const conditionalComponents = [
config.includeWatermark ? new Watermark() : null,
].filter((e) => e);

Expand All @@ -323,7 +323,7 @@ function uiLayout(config: UIConfig) {
new TitleBar(),
new RecommendationOverlay(),
settingsPanel,
...conditionalElements,
...conditionalComponents,
new ErrorMessageOverlay(),
],
hideDelay: 2000,
Expand Down Expand Up @@ -567,7 +567,7 @@ function castReceiverUILayout(config: UIConfig) {
],
});

const conditionalElements = [
const conditionalComponents = [
config.includeWatermark ? new Watermark() : null,
].filter((e) => e);

Expand All @@ -578,7 +578,7 @@ function castReceiverUILayout(config: UIConfig) {
new PlaybackToggleOverlay(),
controlBar,
new TitleBar({ keepHiddenWithoutMetadata: true }),
...conditionalElements,
...conditionalComponents,
new ErrorMessageOverlay(),
],
cssClasses: ['ui-cast-receiver'],
Expand Down

0 comments on commit 79a3b81

Please sign in to comment.