this repo has no description
0
fork

Configure Feed

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

better error handling

authored by

alice and committed by
Jesse J. Anderson
630eef00 ecbd1616

+8 -13
+8 -13
content.js
··· 32 32 33 33 // Function to check for a DID in the well-known (not .well-known) location 34 34 async function checkForDIDHTTPS(domain) { 35 - const response = await fetch( 36 - `https://${domain}/xrpc/com.atproto.identity.resolveHandle` 37 - ) 38 - 39 - if (response.status === 200) { 40 - try { 41 - const data = await response.json() 42 - return data.did 43 - } catch (error) { 44 - return null 45 - } 35 + try { 36 + const response = await fetch( 37 + `https://${domain}/xrpc/com.atproto.identity.resolveHandle` 38 + ) 39 + const data = await response.json() 40 + return data.did 41 + } catch (error) { 42 + return null 46 43 } 47 - 48 - return null 49 44 } 50 45 51 46 // Main function to perform actions, but only if the privacy consent has been accepted