mirror of
https://github.com/amark/gun.git
synced 2025-11-24 14:35:55 +00:00
Fixing non-existent err variable in localStorage (#1044)
* Fixing non-existant err variable in localStorage * Update localStorage.js
This commit is contained in:
parent
e9ed2e5a02
commit
429b011955
@ -71,7 +71,7 @@ Gun.on('create', function(root){
|
|||||||
clearTimeout(to);
|
clearTimeout(to);
|
||||||
to = false;
|
to = false;
|
||||||
try{store.setItem('gap/'+opt.prefix, JSON.stringify(gap));
|
try{store.setItem('gap/'+opt.prefix, JSON.stringify(gap));
|
||||||
}catch(e){ Gun.log(err = e || "localStorage failure") }
|
}catch(e){ Gun.log("localStorage failure: "+e.message) }
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user