mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +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);
|
||||
to = false;
|
||||
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) }
|
||||
}
|
||||
});
|
||||
|
||||
@ -147,4 +147,4 @@ Gun.on('create', function(root){
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user