mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
Merge pull request #505 from zspencer/zs-support-load-in-node
Support `load` plugin in node
This commit is contained in:
commit
d2a22ece4d
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user