Browse Source

Skip Electron's logs or new lines

master
Mohammad Fares 5 years ago
parent
commit
c4cc8886a5
  1. 5
      commands/render.js
  2. 3
      render/index.js

5
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

3
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);

Loading…
Cancel
Save