Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Peer2Peer - changeXMLHTTPRequest To Async #59

Merged
merged 2 commits into from
Mar 17, 2015

Conversation

KaptenJansson
Copy link
Contributor

No description provided.

@@ -751,7 +751,7 @@ function sendToPeer(peer, message) {
var request = new XMLHttpRequest();
var url = global.serverUrl + '/message?peer_id=' + global.ourPeerId + '&to=' +
peer;
request.open('POST', url, false);
request.open('POST', url, true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true is the default... so it can be omitted.

@andresusanopinto
Copy link
Contributor

lgtm % nits

KaptenJansson added a commit that referenced this pull request Mar 17, 2015
Peer2Peer - changeXMLHTTPRequest To Async
@KaptenJansson KaptenJansson merged commit ca8ceed into master Mar 17, 2015
@KaptenJansson KaptenJansson deleted the changeXMLHTTPRequestToAsync branch March 17, 2015 10:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants