Don't show graph on mobile browsers

This commit is contained in:
Cryptkeeper
2015-12-18 19:00:57 -06:00
parent a426a6afa2
commit 88173ead11
3 changed files with 16 additions and 3 deletions

8
app.js
View File

@ -151,9 +151,6 @@ function startServices() {
for (var i = 0; i < networkHistoryKeys.length; i++) {
client.emit('add', [networkHistory[networkHistoryKeys[i]]]);
}
// Send them the big 24h graph.
client.emit('historyGraph', graphData);
}, 1);
// Attach our listeners.
@ -164,6 +161,11 @@ function startServices() {
});
});
server.io.on('requestHistoryGraph', function(client) {
// Send them the big 24h graph.
client.emit('historyGraph', graphData);
});
startMainLoop();
});
}