this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: Add diagnostic logs to trace record loading

+4
+4
app.js
··· 11 11 const agent = new window.AtprotoApi.AtpAgent({ 12 12 service: "https://bsky.social", 13 13 }); 14 + console.log("ATProto Agent initialized:", agent); // Diagnostic log 14 15 15 16 // Event listeners 16 17 loadButton.addEventListener("click", () => { 18 + console.log("Load button clicked"); // Diagnostic log 17 19 const repo = repoInput.value.trim(); 18 20 if (!repo) { 19 21 alert("Please enter a valid repository DID or handle"); ··· 35 37 36 38 // Function to load records from the repository 37 39 async function loadRecords(repo) { 40 + console.log("loadRecords called with repo:", repo); // Diagnostic log 38 41 try { 39 42 loadButton.disabled = true; 40 43 loadMoreButton.disabled = true; 41 44 loadMoreButton.textContent = "Loading..."; 45 + console.log("Attempting to list records for repo:", repo, "with cursor:", currentCursor); // Diagnostic log 42 46 43 47 // Call the AT Protocol API to list records 44 48 const response = await agent.com.atproto.repo.listRecords({