Skip to content

Commit

Permalink
fix(persist-web-storage): fix cookie availability check (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
Laniman committed May 3, 2024
1 parent b34736e commit 8da6fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/persist-web-storage/src/reatomPersistCookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const reatomPersistCookie =
}

try {
var isCookieAvailable = !!globalThis.document.cookie
var isCookieAvailable = 'cookie' in globalThis.document
} catch (error) {
isCookieAvailable = false
}
Expand Down

0 comments on commit 8da6fe3

Please sign in to comment.