fix Buffer ref

This commit is contained in:
Mark Nadal 2018-02-07 01:47:36 -08:00
parent 5225989c1a
commit 2e90ef5c44
2 changed files with 4 additions and 3 deletions

5
sea.js
View File

@ -142,8 +142,8 @@
SafeBuffer.prototype.from = SafeBuffer.from
SafeBuffer.prototype.toString = SeaArray.prototype.toString
const Buffer = SafeBuffer
if(typeof window !== 'undefined'){ window.Buffer = window.Buffer || Buffer }
//const Buffer = SafeBuffer
//if(typeof window !== 'undefined'){ window.Buffer = window.Buffer || SafeBuffer }
module.exports = SafeBuffer;
})(USE, './buffer');
@ -378,6 +378,7 @@
var getRandomBytes = wc.random;
var EasyIndexedDB = USE('./indexed');
var SafeBuffer = USE('./buffer');
var Buffer = SafeBuffer;
var settings = USE('./settings');
var pbKdf2 = settings.pbkdf2;
var ecdsaKeyProps = settings.ecdsa.pair;

View File

@ -93,7 +93,7 @@ describe("Stress test GUN with SEA users causing PANIC!", function(){
});
it(config.browsers +" browser(s) have joined!", function(){
console.log("PLEASE OPEN https://"+ config.IP +":"+ (config.port+1) +" IN "+ config.browsers +" BROWSER(S)!");
console.log("PLEASE OPEN https://"+ config.IP +":"+ (config.port+1) +"/contact/index.html IN "+ config.browsers +" BROWSER(S)!");
return browsers.atLeast(config.browsers);
});