@ -65,7 +65,7 @@ type State = ReturnType<typeof ReducerRecord>;
|
||||
const buildKey = (parts: string[]) => parts.join(':');
|
||||
|
||||
// For subdirectory support
|
||||
const NAMESPACE = trim(BuildConfig.FE_SUBDIRECTORY, '/') ? `soapbox@${BuildConfig.FE_SUBDIRECTORY}` : 'soapbox';
|
||||
const NAMESPACE = trim(BuildConfig.FE_SUBDIRECTORY, '/') ? `soapbox@${BuildConfig.FE_SUBDIRECTORY}` : 'pl-fe';
|
||||
|
||||
const STORAGE_KEY = buildKey([NAMESPACE, 'auth']);
|
||||
const SESSION_KEY = buildKey([NAMESPACE, 'auth', 'me']);
|
||||
|
||||
@ -42,7 +42,7 @@ const startSentry = async (dsn: string): Promise<void> => {
|
||||
tracesSampleRate: .1,
|
||||
});
|
||||
|
||||
Sentry.setContext('soapbox', sourceCode);
|
||||
Sentry.setContext('pl-fe', sourceCode);
|
||||
};
|
||||
|
||||
/** Associate the account with Sentry events. */
|
||||
|
||||
@ -7,8 +7,8 @@ interface IKVStore extends LocalForage {
|
||||
// localForage
|
||||
// https://localforage.github.io/localForage/#settings-api-config
|
||||
const KVStore = localforage.createInstance({
|
||||
name: 'soapbox',
|
||||
description: 'Soapbox offline data store',
|
||||
name: 'pl-fe',
|
||||
description: 'pl-fe offline data store',
|
||||
driver: localforage.INDEXEDDB,
|
||||
storeName: 'keyvaluepairs',
|
||||
}) as IKVStore;
|
||||
|
||||
Reference in New Issue
Block a user