diff --git a/commands/render.js b/commands/render.js index 8856a4e..be6634f 100644 --- a/commands/render.js +++ b/commands/render.js @@ -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 diff --git a/render/index.js b/render/index.js index 1eb228a..064d443 100644 --- a/render/index.js +++ b/render/index.js @@ -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);