mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
Update sea.js
This commit is contained in:
parent
1de6e4bdc2
commit
eccc9449f7
3
sea.js
3
sea.js
@ -15,6 +15,9 @@
|
||||
|
||||
var Gun = (typeof window !== 'undefined' ? window : global).Gun || require('./gun');
|
||||
|
||||
if(typeof buffer !== 'undefined'){ // polyfill from cryptomodules for now, not needed after safe-buffer!
|
||||
var Buffer = buffer.Buffer;
|
||||
}
|
||||
if(typeof Buffer === 'undefined'){
|
||||
var Buffer = require('safe-buffer').Buffer; //eslint-disable-line no-redeclare
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user