Skip to content

Commit 388eec1

Browse files
authored
Merge pull request #14268 from guardian/doml/remove-looping-video-test
Replace looping video test with switch
2 parents 58896a6 + e4218a4 commit 388eec1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

dotcom-rendering/src/server/handler.front.web.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ const enhanceFront = (body: unknown): Front => {
4343
.editionBrandings,
4444
data.editionId,
4545
),
46-
isLoopingVideoTest:
47-
data.config.abTests.loopingVideoVariant === 'variant',
46+
isLoopingVideoTest: !!data.config.switches.loopingVideo,
4847
}),
4948
},
5049
mostViewed: data.mostViewed.map((trail) => decideTrail(trail)),
@@ -88,8 +87,7 @@ const enhanceTagPage = (body: unknown): TagPage => {
8887
pageId: data.pageId,
8988
discussionApiUrl: data.config.discussionApiUrl,
9089
editionId: data.editionId,
91-
isLoopingVideoTest:
92-
data.config.abTests.loopingVideoVariant === 'variant',
90+
isLoopingVideoTest: !!data.config.switches.loopingVideo,
9391
});
9492
const speed = getSpeedFromTrails(data.contents);
9593

0 commit comments

Comments
 (0)