make sure localStorage isn't disabled

This commit is contained in:
Mark Nadal 2015-12-28 14:49:24 -08:00
parent 8c0dae0176
commit 2e876b92fc

4
gun.js
View File

@ -1010,8 +1010,8 @@
(opt = opt || {}).url = opt.url || {};
opt.headers = Gun.obj.copy(tab.headers);
opt.url.pathname = '/' + key;
Gun.log("tab get --->", key);
(function local(key, cb){return; // TODO: BUG! UNDO!
//Gun.log("tab get --->", key);
(function local(key, cb){
tab.store.get(tab.prefix + key, function(err, data){
if(err){ return cb(err) }
cb(err, Gun.is.graph.ify(data)); // node