From cdfd411ec84c1b150fcfa67ca1244cf17749e43c Mon Sep 17 00:00:00 2001
From: Mark Nadal <mark@accelsor.com>
Date: Sat, 8 Oct 2016 15:31:57 -0700
Subject: [PATCH] this to window

---
 gun.js       | 2 +-
 package.json | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gun.js b/gun.js
index fc189d08..c9fce471 100644
--- a/gun.js
+++ b/gun.js
@@ -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));
 
diff --git a/package.json b/package.json
index 1414efc7..4e2d3729 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "gun",
-  "version": "0.3.994",
+  "version": "0.3.995",
   "description": "Graph engine",
   "main": "index.js",
   "scripts": {