mirror of
https://github.com/RobinLinus/snapdrop.git
synced 2025-05-19 09:00:29 -07:00
Remove unnecessary code
This commit is contained in:
parent
fb7c5cd642
commit
cf9129618b
@ -274,11 +274,9 @@ class RTCPeer extends Peer {
|
||||
if (message.sdp) {
|
||||
this._conn.setRemoteDescription(new RTCSessionDescription(message.sdp))
|
||||
.then( _ => {
|
||||
if (message.sdp.type == 'offer') {
|
||||
if (message.sdp.type === 'offer') {
|
||||
return this._conn.createAnswer()
|
||||
.then(d => this._onDescription(d));
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(e => this._onError(e));
|
||||
|
Loading…
x
Reference in New Issue
Block a user