mirror of
https://github.com/pion/webrtc.git
synced 2025-10-09 00:50:12 +08:00
Fix Codacy warnings
Run standardjs across all js files, fix all other issues by hand
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user