X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/eadfca7b00e2fb48ffd6b2a0e06c2b6d7e427679..80172072ed99b14e3d5b435b097888a4621f78bc:/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);