this to window

This commit is contained in:
Mark Nadal 2016-10-08 15:31:57 -07:00
parent 20349076e0
commit cdfd411ec8
2 changed files with 2 additions and 2 deletions

2
gun.js
View File

@ -1171,7 +1171,7 @@
s.put = function(key, val, cb){ try{ store.setItem(key, Gun.text.ify(val)) }catch(e){if(cb)cb(e)} }
s.get = function(key, cb){ /*setTimeout(function(){*/ try{ cb(null, Gun.obj.ify(store.getItem(key) || null)) }catch(e){cb(e)} /*},1)*/}
s.del = function(key){ return store.removeItem(key) }
var store = this.localStorage || {setItem: function(){}, removeItem: function(){}, getItem: function(){}};
var store = window.localStorage || {setItem: function(){}, removeItem: function(){}, getItem: function(){}};
exports.store = s;
}.bind(this || module)(Tab));

View File

@ -1,6 +1,6 @@
{
"name": "gun",
"version": "0.3.994",
"version": "0.3.995",
"description": "Graph engine",
"main": "index.js",
"scripts": {