diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-06-13 13:10:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-13 13:10:42 -0500 |
commit | 1a12fa57754e32f7d5c3887e7fa35fcfd92bac39 (patch) | |
tree | 64df300119443904cf05f0e18f69a0c82863e34c /src/state/models/root-store.ts | |
parent | 6efbe820d9bb2f3f539676d17a084dc3c7855f54 (diff) | |
download | voidsky-1a12fa57754e32f7d5c3887e7fa35fcfd92bac39.tar.zst |
Add temporary appview-proxy header toggle (#874)
Diffstat (limited to 'src/state/models/root-store.ts')
-rw-r--r-- | src/state/models/root-store.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/state/models/root-store.ts b/src/state/models/root-store.ts index f2a352a79..5a3d102aa 100644 --- a/src/state/models/root-store.ts +++ b/src/state/models/root-store.ts @@ -23,6 +23,11 @@ import {ImageSizesCache} from './cache/image-sizes' import {MutedThreads} from './muted-threads' import {reset as resetNavigation} from '../../Navigation' +// TEMPORARY (APP-700) +// remove after backend testing finishes +// -prf +import {applyDebugHeader} from 'lib/api/debug-appview-proxy-header' + export const appInfo = z.object({ build: z.string(), name: z.string(), @@ -125,6 +130,7 @@ export class RootStoreModel { ) { this.log.debug('RootStoreModel:handleSessionChange') this.agent = agent + applyDebugHeader(this.agent) this.me.clear() /* dont await */ this.preferences.sync() await this.me.load() |