Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@ import { getErrorMessage } from '@audius/common'
import AsyncStorage from '@react-native-async-storage/async-storage'
import type { NativeSyntheticEvent } from 'react-native'
import { View } from 'react-native'
import Config from 'react-native-config'
import StaticServer from 'react-native-static-server'
import { WebView } from 'react-native-webview'
import type { WebViewMessage } from 'react-native-webview/lib/WebViewTypes'
import { useAsync } from 'react-use'

import { ENTROPY_KEY } from 'app/store/account/sagas'

const OLD_WEB_APP_STATIC_SERVER_PORT = Config.OLD_WEB_APP_STATIC_SERVER_PORT

const injected = `
(function() {
const entropy = window.localStorage.getItem('${ENTROPY_KEY}')
Expand All @@ -35,7 +32,8 @@ export const WebAppAccountSync = (props: WebAppAccountSyncProps) => {
const { setIsReadyToSetupBackend } = props

const { value: uri, error } = useAsync(async () => {
const server = new StaticServer(OLD_WEB_APP_STATIC_SERVER_PORT, {
// Hardcoding port here to test bonce app loading issue
const server = new StaticServer(3101, {
localOnly: true,
keepAlive: true
})
Expand Down