Skip to content

Commit

Permalink
Fix:lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
so010 committed Nov 14, 2018
1 parent c2ff420 commit d9711d9
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions app/lib/RoomClient.js
Expand Up @@ -115,8 +115,6 @@ export default class RoomClient

this._screenSharingProducer = null;

this._startKeyListener();

this._join({ displayName, device });
}

Expand All @@ -139,33 +137,6 @@ export default class RoomClient
this._dispatch(stateActions.setRoomState('closed'));
}

_startKeyListener()
{
// Add keypress event listner on document
document.addEventListener('keypress', (event) =>
{
const key = String.fromCharCode(event.keyCode);

const source = event.target;

const exclude = [ 'input', 'textarea' ];

if (exclude.indexOf(source.tagName.toLowerCase()) === -1)
{
logger.debug('keyPress() [key:"%s"]', key);

switch (key)
{
case 'a': // Activate advanced mode
{
this._dispatch(stateActions.toggleAdvancedMode());
this.notify('Toggled advanced mode.');
}
}
}
});
}

login()
{
const url = `/login?roomId=${this._room.roomId}&peerName=${this._peerName}`;
Expand Down Expand Up @@ -581,8 +552,6 @@ export default class RoomClient

const track = stream.getAudioTracks()[0];

const oldTrack = this._micProducer.track;

const newTrack = await this._micProducer.replaceTrack(track);

const harkStream = new MediaStream;
Expand Down

0 comments on commit d9711d9

Please sign in to comment.