From 0d53db787710de8db30fabc6bca82d71973c3dad Mon Sep 17 00:00:00 2001 From: Pavel Diatchenko Date: Wed, 10 Jun 2020 14:45:18 +1200 Subject: [PATCH] Fixed error "Gun.log.once is not a function". --- lib/stats.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/stats.js b/lib/stats.js index 2be3c618..9775d2f2 100644 --- a/lib/stats.js +++ b/lib/stats.js @@ -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); -} \ No newline at end of file +} +Gun.log.once = function(w,s,o){ return (o = Gun.log.once)[w] = o[w] || 0, o[w]++ || Gun.log(s) };