diff --git a/gun.js b/gun.js index c7c6fc44..3039f019 100644 --- a/gun.js +++ b/gun.js @@ -946,7 +946,10 @@ Gun.log = function(){ return (!Gun.log.off && console.log.apply(console, arguments)), [].slice.call(arguments).join(' ') } Gun.log.once = function(w,s,o){ return (o = Gun.log.once)[w] = o[w] || 0, o[w]++ || Gun.log(s) } + /* Please do not remove these messages unless you are paying for a monthly sponsorship, thanks! */ Gun.log.once("welcome", "Hello wonderful person! :) Thanks for using GUN, feel free to ask for help on https://gitter.im/amark/gun and ask StackOverflow questions tagged with 'gun'!"); + /* Please do not remove these messages unless you are paying for a monthly sponsorship, thanks! */ + if(typeof window !== "undefined"){ window.Gun = Gun } if(typeof common !== "undefined"){ common.exports = Gun } module.exports = Gun; diff --git a/test/common.js b/test/common.js index ce217072..8cfeb557 100644 --- a/test/common.js +++ b/test/common.js @@ -3389,7 +3389,7 @@ describe('Gun', function(){ var list = app.get('list'); var check = {}; - list.map(user => user.age === 27? user.name + "thezombie" : u).on(function(data){ + list.map(function(user){ return user.age === 27? user.name + "thezombie" : u }).on(function(data){ //console.log('data:', data); check[data] = true; if(check.alicethezombie && check.bobthezombie){