diff options
author | dan <dan.abramov@gmail.com> | 2024-12-13 17:16:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-13 17:16:53 +0000 |
commit | 356dad1932c3404f581b747127ae251dbe165bb3 (patch) | |
tree | d966d4c5fd4645f9897a984a018d7258399e1674 /src/state/session | |
parent | e2a7965e438db9f70d76d2d7a911aa4c4a42c122 (diff) | |
download | voidsky-356dad1932c3404f581b747127ae251dbe165bb3.tar.zst |
Remove the environment indirections (#7089)
* Use raw underlying globals for environment * Set dev EXPO_PUBLIC_ENV by exclusion
Diffstat (limited to 'src/state/session')
-rw-r--r-- | src/state/session/index.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/state/session/index.tsx b/src/state/session/index.tsx index ab3352bf3..48b258863 100644 --- a/src/state/session/index.tsx +++ b/src/state/session/index.tsx @@ -6,7 +6,6 @@ import {isWeb} from '#/platform/detection' import * as persisted from '#/state/persisted' import {useCloseAllActiveElements} from '#/state/util' import {useGlobalDialogsControlContext} from '#/components/dialogs/Context' -import {IS_DEV} from '#/env' import {emitSessionDropped} from '../events' import { agentToSessionAccount, @@ -260,7 +259,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) { ) // @ts-ignore - if (IS_DEV && isWeb) window.agent = state.currentAgentState.agent + if (__DEV__ && isWeb) window.agent = state.currentAgentState.agent const agent = state.currentAgentState.agent as BskyAppAgent const currentAgentRef = React.useRef(agent) |