Update wsp.js

This commit is contained in:
Mark Nadal 2016-01-11 16:13:17 -08:00
parent bf6a47351f
commit 73aae8edf0

View File

@ -127,7 +127,7 @@
key[Gun._.soul] = req.url.query[Gun._.soul];
}
console.log("tran.get", key);
gun.__.opt.wire.get(key, function(err, node){
(gun.__.opt.wire.get||function(key, cb){cb(null,null)})(key, function(err, node){
//tran.sub.scribe(req.tab, graph._[Gun._.soul]);
console.log("tran.get", key, "<---", err, node);
if(err || !node){