Skip Electron's logs or new lines
This commit is contained in:
parent
4d2c989829
commit
c4cc8886a5
|
@ -99,6 +99,11 @@ function renderFrames(records, options) {
|
|||
|
||||
render.stdout.on('data', function(data) {
|
||||
|
||||
// Is not a recordIndex (to skip Electron's logs or new lines)
|
||||
if (di.is.not.number(parseInt(data.toString()))) {
|
||||
return;
|
||||
}
|
||||
|
||||
progressBar.tick();
|
||||
|
||||
// Rendering is completed
|
||||
|
|
|
@ -42,9 +42,10 @@ function createWindow() {
|
|||
* A callback function for the event:
|
||||
* When a frame is captured
|
||||
*
|
||||
* @param {Object} event
|
||||
* @param {Number} recordIndex
|
||||
*/
|
||||
ipcMain.on('captured', function(recordIndex) {
|
||||
ipcMain.on('captured', function(event, recordIndex) {
|
||||
|
||||
console.log(recordIndex);
|
||||
|
||||
|
|
Loading…
Reference in New Issue