diff --git a/web/index.html b/web/index.html index 87cdfe68e..757ccc03a 100644 --- a/web/index.html +++ b/web/index.html @@ -131,12 +131,12 @@

Options

- + - + diff --git a/web/js/controller.js b/web/js/controller.js index edd0e61e7..b84ff6b18 100644 --- a/web/js/controller.js +++ b/web/js/controller.js @@ -126,12 +126,6 @@ stream.play() - // TODO get current game from the URL and not from the list? - // if we are opening a share link it will send the default game name to the server - // currently it's a game with the index 1 - // on the server this game is ignored and the actual game will be extracted from the share link - // so there's no point in doing this and this' really confusing - api.game.start( gameList.selected, room.getId(), @@ -276,7 +270,7 @@ const handleRecordingStatus = (data) => { if (data === 'ok') { - message.show(`Recording ${recording.isActive() ? 'on' : 'off'}`, true) + message.show(`Recording ${recording.isActive() ? 'on' : 'off'}`) if (recording.isActive()) { recording.setIndicator(true) } @@ -284,7 +278,7 @@ message.show(`Recording failed ):`) recording.setIndicator(false) } - console.log("recording is ", recording.isActive()) + log.debug("recording is ", recording.isActive()) } const _default = { diff --git a/web/js/network/webrtc.js b/web/js/network/webrtc.js index 26e04f59a..544a93703 100644 --- a/web/js/network/webrtc.js +++ b/web/js/network/webrtc.js @@ -146,7 +146,6 @@ const webrtc = (() => { event.pub(WEBRTC_SDP_ANSWER, {sdp: answer}); media.srcObject = mediaStream; }, - // setMessageHandler: (handler) => onMessage = handler, addCandidate: (data) => { if (data === '') { event.pub(WEBRTC_ICE_CANDIDATES_FLUSH); @@ -166,15 +165,6 @@ const webrtc = (() => { }); isFlushing = false; }, - // message: (mess = '') => { - // try { - // inputChannel.send(mess) - // return true - // } catch (error) { - // log.error('[rtc] input channel broken ' + error) - // return false - // } - // }, input: (data) => dataChannel.send(data), isConnected: () => connected, isInputReady: () => inputReady,