Skip to content

Commit

Permalink
Fix dependency tree
Browse files Browse the repository at this point in the history
  • Loading branch information
shakyShane committed Feb 9, 2014
1 parent c95c1c7 commit f699e61
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
23 changes: 0 additions & 23 deletions lib/browser-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,6 @@ browserSync.prototype = {

ua = client.handshake.headers["user-agent"];

var browser = parser.setUA(ua).getBrowser();

client.name = browser.name;
client.version = browser.version;

clients.push(client);

_this.logConnection(ua, userOptions);
Expand All @@ -217,24 +212,6 @@ browserSync.prototype = {
clients.splice(clients.indexOf(client), 1);
});
});

setInterval(function () {
var items = [];

clients.forEach(function (client) {

var single = {
id: client.id,
name: client.name,
version: client.version
};

items.push(single);
});

io.sockets.emit("cp:browser:update", items);

}, 1000);
},
/**
* Add a client event & it's callback
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"karma-jasmine": "~0.1.3",
"karma-requirejs": "~0.1.0",
"karma-coffee-preprocessor": "~0.1.0",
"karma": "~0.11.13",
"karma": "~0.10.x",
"grunt-karma": "~0.6.2",
"grunt-cli": "*",
"grunt": "~0.4.1",
Expand Down

0 comments on commit f699e61

Please sign in to comment.