|
|
@@ -1076,9 +1076,8 @@ const normalizePlanB = function(desc) {
|
|
1076
|
1076
|
* @param {Object} localDescription the SDP object as defined by WebRTC.
|
|
1077
|
1077
|
*/
|
|
1078
|
1078
|
const enforceSendRecv = function(localDescription) {
|
|
1079
|
|
- if (!localDescription
|
|
1080
|
|
- || !(localDescription instanceof RTCSessionDescription)) {
|
|
1081
|
|
- throw new Error('Incorrect type, expected RTCSessionDescription');
|
|
|
1079
|
+ if (!localDescription) {
|
|
|
1080
|
+ throw new Error('No local description passed in.');
|
|
1082
|
1081
|
}
|
|
1083
|
1082
|
|
|
1084
|
1083
|
const transformer = new SdpTransformWrap(localDescription.sdp);
|