mirror of
https://github.com/vale981/doccam-pi
synced 2025-03-04 17:01:40 -05:00
lines fix
This commit is contained in:
parent
fef9897d34
commit
2a2c7ccf86
1 changed files with 2 additions and 1 deletions
3
main.js
3
main.js
|
@ -314,7 +314,8 @@ var commandHandlers = function commandHandlers(command, cb) {
|
|||
let lines;
|
||||
if (err) {
|
||||
lines = [];
|
||||
} else lines = data.trim().split('\n').slice(-100);
|
||||
} else
|
||||
lines = data.trim().split('\n').slice(-100);
|
||||
|
||||
socket.emit('data', {
|
||||
type: 'logs',
|
||||
|
|
Loading…
Add table
Reference in a new issue