Skip to content

Commit cbdb49f

Browse files
Fix onlyLightColourScheme check
1 parent 3f07617 commit cbdb49f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

dotcom-rendering/src/server/render.article.web.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,7 @@ window.twttr = (function(d, s, id) {
166166

167167
const { canonicalUrl, webPublicationDate } = frontendData;
168168

169-
// Interactive dark mode support launched with full DCAR on June 25th 2025
170-
const isBeforeInteractiveDarkModeSupportLaunch =
169+
const isBeforeInteractiveDarkModeSupport =
171170
Date.parse(webPublicationDate) < Date.parse('2026-01-13T00:00:00Z');
172171

173172
const pageHtml = htmlPageTemplate({
@@ -192,9 +191,9 @@ window.twttr = (function(d, s, id) {
192191
hasLiveBlogTopAd: !!frontendData.config.hasLiveBlogTopAd,
193192
hasSurveyAd: !!frontendData.config.hasSurveyAd,
194193
onlyLightColourScheme:
195-
design === ArticleDesign.FullPageInteractive ||
196-
(design === ArticleDesign.Interactive &&
197-
isBeforeInteractiveDarkModeSupportLaunch),
194+
(design === ArticleDesign.FullPageInteractive ||
195+
design === ArticleDesign.Interactive) &&
196+
isBeforeInteractiveDarkModeSupport,
198197
});
199198

200199
return { html: pageHtml, prefetchScripts };

0 commit comments

Comments
 (0)