Skip to content

Commit

Permalink
chore: inline some variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Aug 19, 2024
1 parent c640e2d commit eb3c376
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,13 +396,11 @@ export class CasparCGDevice extends DeviceWithState<State, DeviceOptionsCasparCG
cgStop: content.useStopCommand,
})
} else if (content.type === TimelineContentTypeCasparCg.HTMLPAGE) {
const commandUrl = interpolateTemplateStringIfNeeded(content.url)

stateLayer = literal<HtmlPageLayer>({
id: layer.id,
layerNo: mapping.layer,
content: LayerContentType.HTMLPAGE,
media: commandUrl,
media: interpolateTemplateStringIfNeeded(content.url),

playTime: startTime || null,
playing: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ export function buildSofieChefState(
const content = layerState.content

if (mapping && content.deviceType === DeviceType.SOFIE_CHEF) {
const commandUrl = interpolateTemplateStringIfNeeded(content.url)

sofieChefState.windows[mapping.options.windowId] = {
url: commandUrl,
url: interpolateTemplateStringIfNeeded(content.url),
urlTimelineObjId: layerState.id,
}
}
Expand Down

0 comments on commit eb3c376

Please sign in to comment.