mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-18 15:22:16 +00:00
Remove unnecessary code
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user