aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/app.js b/app.js
index 6d2df4e..ad5dcb0 100644
--- a/app.js
+++ b/app.js
@@ -24,9 +24,7 @@ function stopOtherPlayersExcept(player) {
24} 24}
25 25
26function makeExclusive(player) { 26function makeExclusive(player) {
27 player.addEventListener("play", _event => { 27 player.addEventListener("play", _event => stopOtherPlayersExcept(player));
28 stopOtherPlayersExcept(player);
29 });
30 return player; 28 return player;
31} 29}
32 30
@@ -99,7 +97,7 @@ function onGetDeviceSuccess(stream) {
99 97
100function onGetDeviceError(error) { 98function onGetDeviceError(error) {
101 console.log(error); 99 console.log(error);
102 errorContainer.innerHTML = error; 100 errorContainer.textContent = error;
103} 101}
104 102
105navigator 103navigator