diff options
author | Eric Bailey <git@esb.lol> | 2024-09-20 14:16:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-20 14:16:23 -0500 |
commit | c85a271ef63ac006bf10f71adae102552298b661 (patch) | |
tree | bdd21bf99a700904dd949bdf02d66ba5cfa0dc98 /src/storage/index.ts | |
parent | 395edfe78f748b199be6417e9a2aac1482ac9bdc (diff) | |
download | voidsky-c85a271ef63ac006bf10f71adae102552298b661.tar.zst |
Additional moderation (#5172)
* Set up additional mod authorities * Filter out non-configurable mod authorities * WIP * Working * Cleanup, add mod * Cleanup * Add more debug logs * Tweak logs * Filter out imperative labels from typeaheads * Filter hideable content from notifications * Add api * Fall back in dev * Remove space * Use prod endpoint * Add tiny notice * Add notice to labeler card, show all labelers
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, + } +} |