Don't show graph on mobile browsers
This commit is contained in:
8
app.js
8
app.js
@ -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();
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user