Skip to content
Open
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
3 changes: 2 additions & 1 deletion packages/web-sdk/src/utils/webStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export function isWebStorageAvailable(type: StorageMechanism): boolean {
return true;
} catch (error) {
// the above can throw
faro.internalLogger?.info(`Web storage of type ${type} is not available. Reason: ${error}`);
// this is called during module init, when the global instance may not be available
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not necessarily called during global module init if you would be able to rephrase the comment for clarity.

faro?.internalLogger?.info(`Web storage of type ${type} is not available. Reason: ${error}`);
return false;
}
}
Expand Down
Loading