diff --git a/lib/clientCode.js b/lib/clientCode.js index 72c6599..c0e78b1 100644 --- a/lib/clientCode.js +++ b/lib/clientCode.js @@ -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); }; @@ -183,4 +183,4 @@ exports.generate = composeFile; exports.isInstrumented = isInstrumented; exports.generateWithHeaderOnly = generateWithHeaderOnly; exports.shouldBeExcluded = shouldBeExcluded; -exports.formatContent = formatContent; \ No newline at end of file +exports.formatContent = formatContent;