feat: upgrade Session

This commit is contained in:
TrèsAbhi committed 2025-09-01 19:16:36 -05:00
1 parent 6d24ed92d0
commit b3a9f0889e
3 files changed
+57 -67

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ export class Varuna<Type, Arguments = void> {
private initialize(initial: Type) {
let data = initial;
if (this.persistence) {
if (this.persistence && typeof localStorage !== "undefined") {
const dehydrated = localStorage.getItem(this.persistence);
if (dehydrated) {