Merge pull request #134 from PsychoLlama/master

Add basic compatibility with browserify and webpack
This commit is contained in:
Mark Nadal 2015-11-24 01:46:59 -08:00
commit 94cde72dfa

3
gun.js
View File

@ -980,7 +980,8 @@
}({}));
if(typeof window !== "undefined"){
window.Gun = Gun;
} else {
}
if(typeof module !== 'undefined' && module.exports){
module.exports = Gun;
}
var root = this || {}; // safe for window, global, root, and 'use strict'.