client + server + host fixes
[henge/kiak.git] / client.js
index 1c03da4..69ac81e 100644 (file)
--- a/client.js
+++ b/client.js
@@ -32,7 +32,8 @@ function pollServer(url, clientPubKey, func) {
     func(url, clientPubKey, resolve, reject )
   })
 }
-/* If https connection, should be already defined. If not https,*/
+
+/* TODO: duplicate in both client.js and host.js */
 function getPublicKey() {
   /* Check local storage for public key */
   if (window.localStorage.getItem('public-key') === undefined) {
@@ -65,8 +66,7 @@ cpc.createOffer().then((offer) => {
   /* Poll for answer */
   return pollServer(window.location, offer, pollServerTimeout)
 }).then((answer) => {
-  /* TODO: Extract sdp from answer ?*/
   console.log(answer)
-  /* State machine to parse answer */
+  /* TODO: State machine to parse answer */
   cpc.setRemoteDescription(answer.sdp)
 })