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

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){