Update sea.js

This commit is contained in:
Mark Nadal 2018-01-16 12:24:54 -08:00 committed by GitHub
parent 1de6e4bdc2
commit eccc9449f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
sea.js
View File

@ -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
}