this repo has no description
0
fork

Configure Feed

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

Strip out @acct@ from instance URL when log in

+3 -1
+3 -1
src/pages/login.jsx
··· 40 40 const { elements } = e.target; 41 41 let instanceURL = elements.instanceURL.value.toLowerCase(); 42 42 // Remove protocol from instance URL 43 - instanceURL = instanceURL.replace(/(^\w+:|^)\/\//, ''); 43 + instanceURL = instanceURL.replace(/^https?:\/\//, '').replace(/\/+$/, ''); 44 + // Remove @acct@ or acct@ from instance URL 45 + instanceURL = instanceURL.replace(/^@?[^@]+@/, ''); 44 46 store.local.set('instanceURL', instanceURL); 45 47 46 48 (async () => {