mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
Added this
check on ine 2151 to prevent an error when using ESM
This commit is contained in:
parent
17f90d6d10
commit
46b0fb6dc5
2
gun.js
2
gun.js
@ -2148,7 +2148,7 @@
|
||||
var message, loop;
|
||||
function each(peer){ mesh.say(message, peer) }
|
||||
var say = mesh.say = function(msg, peer){
|
||||
if(this.to){ this.to.next(msg) } // compatible with middleware adapters.
|
||||
if(this && this.to){ this.to.next(msg) } // compatible with middleware adapters.
|
||||
if(!msg){ return false }
|
||||
var id, hash, tmp, raw;
|
||||
var DBG = msg.DBG, S; if(!peer){ S = +new Date ; DBG && (DBG.y = S) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user