diff options
Diffstat (limited to 'src/storage')
-rw-r--r-- | src/storage/index.ts | 7 | ||||
-rw-r--r-- | src/storage/schema.ts | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/storage/index.ts b/src/storage/index.ts index 4d45134e1..4c4200510 100644 --- a/src/storage/index.ts +++ b/src/storage/index.ts @@ -67,6 +67,13 @@ export class Storage<Scopes extends unknown[], Schema> { } /** + * For debugging purposes + */ + removeAll() { + this.store.clearAll() + } + + /** * Fires a callback when the storage associated with a given key changes * * @returns Listener - call `remove()` to stop listening diff --git a/src/storage/schema.ts b/src/storage/schema.ts index c05a7531d..421264ac1 100644 --- a/src/storage/schema.ts +++ b/src/storage/schema.ts @@ -1,3 +1,5 @@ +import {type ID as PolicyUpdate202508} from '#/components/PolicyUpdateOverlay/updates/202508/config' + /** * Device data that's specific to the device and does not vary based account */ @@ -13,6 +15,12 @@ export type Device = { devMode: boolean demoMode: boolean activitySubscriptionsNudged?: boolean + + /** + * Policy update overlays. New IDs are required for each new announcement. + */ + policyUpdateDebugOverride?: boolean + [PolicyUpdate202508]?: boolean } export type Account = { |