Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
[ACS-4611] Check proper storage (#1515)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKinas committed Feb 10, 2023
1 parent 1dda573 commit 90d8363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class Storage {

supportsStorage() {
try {
return 'sessionStorage' in window && window.sessionStorage !== null;
return 'localStorage' in window && window.localStorage !== null;
} catch (e) {
return false;
}
Expand Down

0 comments on commit 90d8363

Please sign in to comment.