Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[web][cast] More logs

Neeraj Guptad81684a93b8b
diff --git a/web/apps/cast/src/pages/index.tsx b/web/apps/cast/src/pages/index.tsx
index fa4d9e4859..7ad310fe12 100644
--- a/web/apps/cast/src/pages/index.tsx
+++ b/web/apps/cast/src/pages/index.tsx
@@ -174,12 +174,18 @@ export default function PairingMode() {
const router = useRouter();
useEffect(() => {
+ console.log("useEffect for pairing called");
if (digits.length < 1 || !publicKeyB64 || !privateKeyB64) return;
const interval = setInterval(async () => {
+ console.log("polling for cast data");
const data = await pollForCastData();
- if (!data) return;
+ if (!data) {
+ console.log("no data");
+ return;
+ }
storeCastData(data);
+ console.log("pushing slideshow");
await router.push("/slideshow");
}, 1000);