Fix the bug with WebSocketTransport.send usage: will cause problem with Safari
diff --git a/js/tools/build/ndn-js-uncomp.js b/js/tools/build/ndn-js-uncomp.js
index b8df826..d58fb23 100644
--- a/js/tools/build/ndn-js-uncomp.js
+++ b/js/tools/build/ndn-js-uncomp.js
@@ -117,7 +117,7 @@
// Fetch ccndid now
var interest = new Interest(NDN.ccndIdFetcher);
interest.interestLifetime = 4000; // milliseconds
- this.send(encodeToBinaryInterest(interest));
+ self.send(encodeToBinaryInterest(interest));
}
this.ws.onerror = function(ev) {
@@ -7752,7 +7752,7 @@
this.onclose();
//console.log("NDN.onclose event fired.");
} else {
- //console.log('Connected to ccnd.');
+ console.log('Connected to ccnd.');
this.ccndid = co.signedInfo.publisher.publisherPublicKeyDigest;
if (LOG>3) console.log(ndn.ccndid);