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/storage/index.ts | |
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/storage/index.ts')
-rw-r--r-- | src/storage/index.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/storage/index.ts b/src/storage/index.ts index 7ef226d3a..ce17d4c36 100644 --- a/src/storage/index.ts +++ b/src/storage/index.ts @@ -1,6 +1,5 @@ import {MMKV} from 'react-native-mmkv' -import {IS_DEV} from '#/env' import {Device} from '#/storage/schema' export * from '#/storage/schema' @@ -74,7 +73,7 @@ export class Storage<Scopes extends unknown[], Schema> { */ export const device = new Storage<[], Device>({id: 'bsky_device'}) -if (IS_DEV && typeof window !== 'undefined') { +if (__DEV__ && typeof window !== 'undefined') { // @ts-ignore window.bsky_storage = { device, |