diff options
Diffstat (limited to 'src/storage/index.ts')
-rw-r--r-- | src/storage/index.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/storage/index.ts b/src/storage/index.ts index 4be08170d..7ef226d3a 100644 --- a/src/storage/index.ts +++ b/src/storage/index.ts @@ -1,5 +1,6 @@ import {MMKV} from 'react-native-mmkv' +import {IS_DEV} from '#/env' import {Device} from '#/storage/schema' export * from '#/storage/schema' @@ -71,4 +72,11 @@ export class Storage<Scopes extends unknown[], Schema> { * * `device.set([key], true)` */ -export const device = new Storage<[], Device>({id: 'device'}) +export const device = new Storage<[], Device>({id: 'bsky_device'}) + +if (IS_DEV && typeof window !== 'undefined') { + // @ts-ignore + window.bsky_storage = { + device, + } +} |