1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Now refreshing is more forgiving

This commit is contained in:
Zhiyuan Zheng
2020-12-21 13:56:04 +01:00
parent b972cd6ca7
commit 25a80cc57e
2 changed files with 32 additions and 14 deletions

View File

@ -24,6 +24,15 @@ const client = async ({
body?: FormData
onUploadProgress?: (progressEvent: any) => void
}): Promise<any> => {
console.log(
'API call:',
'Method ->',
method,
'Endpoint ->',
url,
'Params ->',
params
)
const state: RootState['instances'] = store.getState().instances
const domain =
instance === 'remote' ? instanceDomain || state.remote.url : state.local.url