From 910dd83931dc12f610738259d14bbc2b5ca10030 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Thu, 9 May 2024 15:12:51 +0530 Subject: [PATCH] Both --- web/apps/cast/src/services/render.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/apps/cast/src/services/render.ts b/web/apps/cast/src/services/render.ts index bf94a3fd88..729d566260 100644 --- a/web/apps/cast/src/services/render.ts +++ b/web/apps/cast/src/services/render.ts @@ -106,7 +106,7 @@ export const renderableImageURLs = async function* (castData: CastData) { // - Subsequently, urls will have the "next" / "preloaded" URL left // over from the last time. We'll promote that to being the one // that'll get displayed, and preload another one. - // if (urls.length < 2) continue; + if (urls.length < 2) continue; // The last element of previousURLs is the URL that is currently // being shown on screen. @@ -119,8 +119,7 @@ export const renderableImageURLs = async function* (castData: CastData) { // The URL that'll now get displayed on screen. const url = ensure(urls.shift()); // The URL that we're preloading for next time around. - // TODO(MR): Cast - const nextURL = ""; //ensure(urls[0]); + const nextURL = ensure(urls[0]); previousURLs.push(url);