[web][cast] More logs
This commit is contained in:
parent
13d5a9f71a
commit
d81684a93b
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue