mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: upgrade Session
This commit is contained in:
1 parent
6d24ed92d0
commit
b3a9f0889e
3 files changed
+57
-67
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user