This commit is contained in:
Daniel Lugo 2020-02-13 19:10:39 -04:00
parent 74fa91c1b0
commit 40f53c6994

View file

@ -9,6 +9,9 @@ const pubToAddress = {}
/** @type {Set<() => void>} */
const listeners = new Set()
listeners.add(() => `pubToAddress: ${JSON.stringify(pubToAddress, null, 4)}`)
const notify = () => listeners.forEach(l => l())
/** @type {Set<string>} */