X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/eadfca7b00e2fb48ffd6b2a0e06c2b6d7e427679..8c7fb565690890d57b6af20ad0771a48cf82b4c7:/extension/peers.js?ds=inline 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);