Skip to content

Commit

Permalink
Making POST to /node-coverage-store synchronous.
Browse files Browse the repository at this point in the history
  • Loading branch information
truong.richard authored and Fabio Crisci committed Nov 5, 2013
1 parent f0ff8ad commit df2b5aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/clientCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ var submitData = function () {
if (!$$_l.__send) {
$$_l.__send = function (data) {
var xhr = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
xhr.open('POST', '/node-coverage-store');
xhr.open('POST', '/node-coverage-store', false);
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(data);
};
Expand All @@ -183,4 +183,4 @@ exports.generate = composeFile;
exports.isInstrumented = isInstrumented;
exports.generateWithHeaderOnly = generateWithHeaderOnly;
exports.shouldBeExcluded = shouldBeExcluded;
exports.formatContent = formatContent;
exports.formatContent = formatContent;

0 comments on commit df2b5aa

Please sign in to comment.