Merge pull request #961 from diatche/log-once-fix

Fixed missing Gun.log.once function
This commit is contained in:
Mark Nadal 2020-06-14 20:34:44 -07:00 committed by GitHub
commit 7c45ddb558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,4 +74,5 @@ Gun.log = console.STAT = function(a,b,c,d){
}
if(!console.LOG || log.off){ return a }
return log.apply(Gun, arguments);
}
}
Gun.log.once = function(w,s,o){ return (o = Gun.log.once)[w] = o[w] || 0, o[w]++ || Gun.log(s) };