Merge pull request #505 from zspencer/zs-support-load-in-node

Support `load` plugin in node
This commit is contained in:
Mark Nadal 2018-02-22 11:10:37 -08:00 committed by GitHub
commit d2a22ece4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,8 @@
var Gun = Gun || require('../gun');
if(typeof window !== "undefined"){
var Gun = window.Gun;
} else {
var Gun = require('gun/gun');
}
Gun.chain.open || require('gun/lib/open');
Gun.chain.load = function(cb, opt, at){