X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/d38261f11a1fa6d922cf1a7a52601c282d0a8527..ff9e30b6132098d29739103abb415cc7410166fc:/extension/peers.js 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);