Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: ivelin <[email protected]>
  • Loading branch information
ivelin committed Nov 3, 2021
1 parent f9e69f2 commit ccee039
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/helloworld/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<script type="module" async>
var connectButton = document.getElementById("connect-button")
// Start peer connection on click
connectButton.addEventListener('click', talkToRemotePeer)
connectButton.addEventListener('click', connectToRemotePeer)

var sayButton = document.getElementById("say-button")
// Send message to remote peer on click
Expand All @@ -57,7 +57,7 @@

let peerFetch

function talkToRemotePeer() {
function connectToRemotePeer() {

// initial setup of PeerFetch on the p2p network
// first, connect to the signaling server (peer registrar)
Expand Down
4 changes: 2 additions & 2 deletions javascript/src/peerfetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export class PeerFetch {
// response when available
const ticket = this._enqueueRequest(request)
const response = await this._receiveResponse(ticket)
console.error('PeerFetch.request ended. Returning response:', { url, method, params, response })
console.debug('PeerFetch.request ended. Returning response:', { url, method, params, response })
return response
}

Expand Down Expand Up @@ -483,7 +483,7 @@ export class PeerFetch {
config.json = json
config.data = data
const response = this.request(config)
console.error('post() received response', { response })
console.debug('post() received response', { response })
return response
}

Expand Down

0 comments on commit ccee039

Please sign in to comment.