Skip to content

Commit

Permalink
Fix: fix for react-native
Browse files Browse the repository at this point in the history
  • Loading branch information
Regani committed May 28, 2024
1 parent e9e1cfa commit e903a3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@voicenter-team/events-sdk",
"version": "0.0.55",
"version": "0.0.56",
"description": "",
"main": "dist/voicenter-events-sdk.cjs.js",
"jsdelivr": "dist/voicenter-events-sdk.umd.js",
Expand Down
2 changes: 1 addition & 1 deletion src/classes/storage/storage.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class StorageClass {
}
}

if (typeof window !== 'undefined') {
if (typeof window !== 'undefined' && typeof window.sessionStorage !== 'undefined' && typeof window.sessionStorage.getItem === 'function') {
const loginSessionKey = window.sessionStorage.getItem(key)

if (loginSessionKey) {
Expand Down

0 comments on commit e903a3a

Please sign in to comment.