mirror of
https://github.com/amark/gun.git
synced 2025-10-14 00:59:35 +00:00
fix Buffer ref
This commit is contained in:
parent
5225989c1a
commit
2e90ef5c44
5
sea.js
5
sea.js
@ -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;
|
||||
|
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user