Explorar o código

do not log to console

akotynski %!s(int64=6) %!d(string=hai) anos
pai
achega
1377d3b466
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      lib/negotiator.ts

+ 0 - 2
lib/negotiator.ts

@@ -221,7 +221,6 @@ Negotiator.cleanup = function(connection) {
 Negotiator._makeOffer = function(connection) {
 Negotiator._makeOffer = function(connection) {
   var pc: RTCPeerConnection = connection.pc;
   var pc: RTCPeerConnection = connection.pc;
   const callback = function(offer) {
   const callback = function(offer) {
-    console.log('created offer', offer);
     util.log("Created offer.");
     util.log("Created offer.");
 
 
     if (
     if (
@@ -266,7 +265,6 @@ Negotiator._makeOffer = function(connection) {
     connection.provider.emitError("webrtc", err);
     connection.provider.emitError("webrtc", err);
     util.log("Failed to createOffer, ", err);
     util.log("Failed to createOffer, ", err);
   }
   }
-  console.log(pc);
   pc.createOffer(connection.options.constraints)
   pc.createOffer(connection.options.constraints)
     .then(offer => callback(offer))
     .then(offer => callback(offer))
     .catch(err => errorHandler(err));
     .catch(err => errorHandler(err));