Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/experiment-browser/src/integration/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ export class IntegrationManager {

export class SessionDedupeCache {
private readonly storageKey: string;
private readonly isSessionStorageAvailable = isSessionStorageAvailable();
private readonly isSessionStorageAvailable = checkIsSessionStorageAvailable();
private inMemoryCache: Record<string, Exposure> = {};

constructor(instanceName: string) {
this.storageKey = `EXP_sent_v2_${instanceName}`;
// Remove previous version of storage if it exists.
if (isSessionStorageAvailable) {
if (this.isSessionStorageAvailable) {
safeGlobal.sessionStorage.removeItem(`EXP_sent_${instanceName}`);
}
}
Expand Down Expand Up @@ -239,7 +239,7 @@ export class PersistentTrackingQueue {
}
}

const isSessionStorageAvailable = (): boolean => {
const checkIsSessionStorageAvailable = (): boolean => {
const globalScope = getGlobalScope();
if (globalScope) {
try {
Expand Down