X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/d38261f11a1fa6d922cf1a7a52601c282d0a8527..baea04f1f4a2070832b85c6b1b61824297493cb7:/extension/peers.js?ds=sidebyside diff --git a/extension/peers.js b/extension/peers.js index 2d74fad..51fd036 100644 --- a/extension/peers.js +++ b/extension/peers.js @@ -1,5 +1,3 @@ -'use strict'; - const internals = { peers: {}, @@ -14,7 +12,7 @@ const internals = { audioElement.src = source; } else { - audoElement.srcObject = source; + audioElement.srcObject = source; } document.querySelector('body').appendChild(audioElement); @@ -23,7 +21,7 @@ const internals = { } }; -module.exports = { +export default { add(id, source) { internals.peers[id] && this.remove(id);