this repo has no description
0
fork

Configure Feed

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

Enable relative path hosting

+6 -5
+1 -1
src/app.jsx
··· 111 111 if (code) { 112 112 console.log({ code }); 113 113 // Clear the code from the URL 114 - window.history.replaceState({}, document.title, '/'); 114 + window.history.replaceState({}, document.title, location.pathname || '/'); 115 115 116 116 const clientID = store.session.get('clientID'); 117 117 const clientSecret = store.session.get('clientSecret');
+1 -1
src/pages/accounts.jsx
··· 143 143 accounts.splice(i, 1); 144 144 store.local.setJSON('accounts', accounts); 145 145 // location.reload(); 146 - location.href = '/'; 146 + location.href = location.pathname || '/'; 147 147 }} 148 148 > 149 149 <Icon icon="exit" />
+3 -3
src/utils/auth.js
··· 4 4 export async function registerApplication({ instanceURL }) { 5 5 const registrationParams = new URLSearchParams({ 6 6 client_name: CLIENT_NAME, 7 - redirect_uris: location.origin, 8 7 scopes: 'read write follow', 8 + redirect_uris: location.origin + location.pathname, 9 9 website: WEBSITE, 10 10 }); 11 11 const registrationResponse = await fetch( ··· 27 27 const authorizationParams = new URLSearchParams({ 28 28 client_id, 29 29 scope: 'read write follow', 30 - redirect_uri: location.origin, 30 + redirect_uri: location.origin + location.pathname, 31 31 // redirect_uri: 'urn:ietf:wg:oauth:2.0:oob', 32 32 response_type: 'code', 33 33 }); ··· 44 44 const params = new URLSearchParams({ 45 45 client_id, 46 46 client_secret, 47 - redirect_uri: location.origin, 47 + redirect_uri: location.origin + location.pathname, 48 48 grant_type: 'authorization_code', 49 49 code, 50 50 scope: 'read write follow',
+1
vite.config.js
··· 25 25 26 26 // https://vitejs.dev/config/ 27 27 export default defineConfig({ 28 + base: './', 28 29 mode: NODE_ENV, 29 30 define: { 30 31 __BUILD_TIME__: JSON.stringify(now),