mirror of
https://github.com/amark/gun.git
synced 2025-10-14 00:59:35 +00:00
Merge pull request #134 from PsychoLlama/master
Add basic compatibility with browserify and webpack
This commit is contained in:
commit
94cde72dfa
3
gun.js
3
gun.js
@ -980,7 +980,8 @@
|
|||||||
}({}));
|
}({}));
|
||||||
if(typeof window !== "undefined"){
|
if(typeof window !== "undefined"){
|
||||||
window.Gun = Gun;
|
window.Gun = Gun;
|
||||||
} else {
|
}
|
||||||
|
if(typeof module !== 'undefined' && module.exports){
|
||||||
module.exports = Gun;
|
module.exports = Gun;
|
||||||
}
|
}
|
||||||
var root = this || {}; // safe for window, global, root, and 'use strict'.
|
var root = this || {}; // safe for window, global, root, and 'use strict'.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user