mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
closes #689
This commit is contained in:
@@ -125,6 +125,14 @@ var socket,
|
||||
socket.on('meta.updateHeader', app.updateHeader);
|
||||
|
||||
app.enterRoom('global');
|
||||
|
||||
if (config.environment === 'development' && console && console.log) {
|
||||
var log = console.log;
|
||||
console.log = function() {
|
||||
log.apply(this, arguments);
|
||||
socket.emit('tools.log', arguments);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
async: false
|
||||
|
||||
Reference in New Issue
Block a user