Log for when peer.id is undefined.

This commit is contained in:
Adriano Rogowski 2018-12-02 17:18:42 -02:00
parent 6fd0e88dd5
commit 83f2aec1e3

View File

@ -14,6 +14,7 @@
} else {
}
if (!peer.id) {console.log('[WARN] no peer.id %s', soul);}
Gun.subscribe[soul] = Gun.subscribe[soul] || [];
if (Gun.subscribe[soul].indexOf(peer) === -1) {
Gun.subscribe[soul].push(peer);