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

Persistant 🪜 setting

This commit is contained in:
xmflsct
2023-04-19 22:34:14 +02:00
parent 63c4ffbabf
commit 48e51530b1
4 changed files with 3 additions and 8 deletions

View File

@@ -1,6 +1,5 @@
import { mapEnvironment } from '@utils/helpers/checkEnvironment'
import { GLOBAL } from '@utils/storage'
import { setGlobalStorage } from '@utils/storage/actions'
import axios from 'axios'
import * as Linking from 'expo-linking'
import { userAgent } from '.'
@@ -119,6 +118,5 @@ export const connectVerify = () =>
headers: { ...userAgent }
}).catch(err => {
GLOBAL.connect = false
setGlobalStorage('app.connect', false)
return Promise.reject(err)
})

View File

@@ -1,6 +1,5 @@
import * as Sentry from '@sentry/react-native'
import { GLOBAL } from '@utils/storage'
import { setGlobalStorage } from '@utils/storage/actions'
import chalk from 'chalk'
import Constants from 'expo-constants'
import * as Linking from 'expo-linking'
@@ -23,7 +22,6 @@ const handleError =
if (GLOBAL.connect) {
if (error?.response?.status == 403 && error?.response?.data == 'connect_blocked') {
GLOBAL.connect = false
setGlobalStorage('app.connect', false)
}
}
const shouldReportToSentry = config && (config.captureRequest || config.captureResponse)