-'use strict';
-
const internals = {
peers: {},
audioElement.src = source;
}
else {
- audoElement.srcObject = source;
+ audioElement.srcObject = source;
}
document.querySelector('body').appendChild(audioElement);
}
};
-module.exports = {
+export default {
add(id, source) {
internals.peers[id] && this.remove(id);