Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix style
  • Loading branch information
darrachequesne committed Mar 8, 2018
commit a3125aaa8b0cee002fbf4321230c59cb6556ffe4
1 change: 0 additions & 1 deletion lib/transports/polling-xhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ Request.prototype.create = function () {
xhr.setRequestHeader('Accept', '*/*');
} catch (e) {}


// ie6 check
if ('withCredentials' in xhr) {
xhr.withCredentials = true;
Expand Down
2 changes: 1 addition & 1 deletion test/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('connection', function () {
}
};

function testBinary(data) {
function testBinary (data) {
var byteArray = new Uint8Array(data);
for (var i = 0; i < byteArray.byteLength; i++) {
expect(byteArray[i]).to.be(i);
Expand Down
4 changes: 2 additions & 2 deletions test/support/public/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ var socket = new eio.Socket();

var count = 0;
socket.on('message', function (msg) {
count++
count++;
if (count < 10) {
socket.send('give utf8');
} else if(count < 20) {
} else if (count < 20) {
socket.send('give binary');
}
postMessage(msg);
Expand Down
2 changes: 1 addition & 1 deletion test/support/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ server.on('connection', function (socket) {
socket.send(abv);
return;
} else if (data === 'give utf8') {
socket.send("пойду сать всем мпокойной ночи");
socket.send('пойду сать всем мпокойной ночи');
return;
}

Expand Down