rm debug code
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {StyleSheet} from 'react-native'
|
import {StyleSheet} from 'react-native'
|
||||||
import {WebView, WebViewNavigation} from 'react-native-webview'
|
import {WebView, type WebViewNavigation} from 'react-native-webview'
|
||||||
import {ShouldStartLoadRequest} from 'react-native-webview/lib/WebViewTypes'
|
import {type ShouldStartLoadRequest} from 'react-native-webview/lib/WebViewTypes'
|
||||||
|
|
||||||
import {SignupState} from '#/screens/Signup/state'
|
import {type SignupState} from '#/screens/Signup/state'
|
||||||
|
|
||||||
const ALLOWED_HOSTS = [
|
const ALLOWED_HOSTS = [
|
||||||
'bsky.social',
|
'bsky.social',
|
||||||
@@ -30,13 +30,12 @@ export function CaptchaWebView({
|
|||||||
onError: (error: unknown) => void
|
onError: (error: unknown) => void
|
||||||
}) {
|
}) {
|
||||||
const redirectHost = React.useMemo(() => {
|
const redirectHost = React.useMemo(() => {
|
||||||
return 'e9755d3e012b.ngrok.app'
|
if (!state?.serviceUrl) return 'bsky.app'
|
||||||
// if (!state?.serviceUrl) return 'bsky.app'
|
|
||||||
//
|
return state?.serviceUrl &&
|
||||||
// return state?.serviceUrl &&
|
new URL(state?.serviceUrl).host === 'staging.bsky.dev'
|
||||||
// new URL(state?.serviceUrl).host === 'staging.bsky.dev'
|
? 'staging.bsky.app'
|
||||||
// ? 'staging.bsky.app'
|
: 'bsky.app'
|
||||||
// : 'bsky.app'
|
|
||||||
}, [state?.serviceUrl])
|
}, [state?.serviceUrl])
|
||||||
|
|
||||||
const wasSuccessful = React.useRef(false)
|
const wasSuccessful = React.useRef(false)
|
||||||
|
|||||||
Reference in New Issue
Block a user