diff --git a/gun.js b/gun.js index 265ac557..9611e229 100644 --- a/gun.js +++ b/gun.js @@ -1142,7 +1142,7 @@ }(Gun)); var root = this || {}; // safe for window, global, root, and 'use strict'. - if(root.window){ (root = window).Gun = Gun } + if(typeof window !== "undefined"){ (root = window).Gun = Gun } if(typeof module !== "undefined" && module.exports){ module.exports = Gun } if(typeof global !== "undefined"){ root = global; } root.console = root.console || {log: function(s){ return s }}; // safe for old browsers diff --git a/package.json b/package.json index 5c0a734e..e844e0c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gun", - "version": "0.3.98", + "version": "0.3.99", "description": "Graph engine", "main": "index.js", "scripts": {