Fix Codacy warnings

Run standardjs across all js files, fix all other issues by hand
This commit is contained in:
Sean DuBois
2019-02-05 14:21:11 -08:00
parent 88b495c7f5
commit d9ba0533f5
8 changed files with 16 additions and 22 deletions

View File

@@ -19,7 +19,7 @@ window.createSession = isPublisher => {
}
if (isPublisher) {
navigator.mediaDevices.getUserMedia({video: true, audio: false})
navigator.mediaDevices.getUserMedia({ video: true, audio: false })
.then(stream => pc.addStream(document.getElementById('video1').srcObject = stream))
.catch(log)
pc.onnegotiationneeded = e => {
@@ -28,7 +28,7 @@ window.createSession = isPublisher => {
.catch(log)
}
} else {
pc.createOffer({offerToReceiveVideo: true})
pc.createOffer({ offerToReceiveVideo: true })
.then(d => pc.setLocalDescription(d))
.catch(log)