your personal website on atproto - mirror blento.app
25
fork

Configure Feed

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

Merge pull request #145 from flo-bit/custom-domains-editing

fix

authored by

Florian and committed by
GitHub
11176b46 1f88d4b4

+4 -4
+4 -4
src/lib/atproto/auth.svelte.ts
··· 40 40 export async function initClient(options?: { customDomain?: string }) { 41 41 user.isInitializing = true; 42 42 43 - const client_id = dev 43 + let client_id = dev 44 44 ? `http://localhost` + 45 45 `?redirect_uri=${encodeURIComponent('http://127.0.0.1:5179' + REDIRECT_PATH)}` + 46 46 `&scope=${encodeURIComponent(metadata.scope)}` ··· 53 53 } 54 54 }); 55 55 56 - const redirect_uri = dev ? 'http://127.0.0.1:5179' + REDIRECT_PATH : metadata.redirect_uris[0]; 56 + let redirect_uri = dev ? 'http://127.0.0.1:5179' + REDIRECT_PATH : metadata.redirect_uris[0]; 57 57 58 58 if (options?.customDomain) { 59 - client_id.replace('blento.app', options.customDomain); 60 - redirect_uri.replace('blento.app', options.customDomain); 59 + client_id = client_id.replace('blento.app', options.customDomain); 60 + redirect_uri = redirect_uri.replace('blento.app', options.customDomain); 61 61 62 62 console.log(client_id, redirect_uri); 63 63 } else {