Fixed error "Gun.log.once is not a function".

This commit is contained in:
Pavel Diatchenko 2020-06-10 14:45:18 +12:00
parent f759ab1394
commit 0d53db7877

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) };