mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
make sure localStorage returns nodes not graphs
This commit is contained in:
parent
2e876b92fc
commit
22f98065db
3
gun.js
3
gun.js
@ -1013,8 +1013,9 @@
|
||||
//Gun.log("tab get --->", key);
|
||||
(function local(key, cb){
|
||||
tab.store.get(tab.prefix + key, function(err, data){
|
||||
if(!data){ return } // let the peers handle no data.
|
||||
if(err){ return cb(err) }
|
||||
cb(err, Gun.is.graph.ify(data)); // node
|
||||
cb(err, data); // node
|
||||
cb(err, Gun.is.node.soul.ify({}, Gun.is.node.soul(data))); // end
|
||||
cb(err, {}); // terminate
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user