Remove debug logs

This commit is contained in:
Manav Rathi 2024-05-10 14:09:31 +05:30
parent 950bb3489f
commit bce3af5db4
No known key found for this signature in database
2 changed files with 1 additions and 8 deletions

View file

@ -50,8 +50,6 @@ export default function Slideshow() {
};
}, []);
console.log("Rendering slideshow", { loading, imageURL });
if (loading) return <PairingComplete />;
if (isEmpty) return <NoItems />;

View file

@ -105,7 +105,6 @@ export const imageURLGenerator = async function* (castData: CastData) {
if (!isFileEligible(file)) continue;
console.log("will start createRenderableURL", new Date(), file);
let url: string;
try {
url = await createRenderableURL(castToken, file);
@ -131,8 +130,6 @@ export const imageURLGenerator = async function* (castData: CastData) {
continue;
}
console.log("did end createRenderableURL", new Date());
// The last element of previousURLs is the URL that is currently
// being shown on screen.
//
@ -144,10 +141,8 @@ export const imageURLGenerator = async function* (castData: CastData) {
previousURLs.push(url);
const elapsedTime = Date.now() - lastYieldTime;
if (elapsedTime > 0 && elapsedTime < slideDuration) {
console.log("waiting", slideDuration - elapsedTime);
if (elapsedTime > 0 && elapsedTime < slideDuration)
await wait(slideDuration - elapsedTime);
}
lastYieldTime = Date.now();
yield url;