Remove the environment indirections (#7089)
* Use raw underlying globals for environment * Set dev EXPO_PUBLIC_ENV by exclusion
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user