Skip Electron's logs or new lines
This commit is contained in:
@@ -99,6 +99,11 @@ function renderFrames(records, options) {
|
|||||||
|
|
||||||
render.stdout.on('data', function(data) {
|
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();
|
progressBar.tick();
|
||||||
|
|
||||||
// Rendering is completed
|
// Rendering is completed
|
||||||
|
|||||||
@@ -42,9 +42,10 @@ function createWindow() {
|
|||||||
* A callback function for the event:
|
* A callback function for the event:
|
||||||
* When a frame is captured
|
* When a frame is captured
|
||||||
*
|
*
|
||||||
|
* @param {Object} event
|
||||||
* @param {Number} recordIndex
|
* @param {Number} recordIndex
|
||||||
*/
|
*/
|
||||||
ipcMain.on('captured', function(recordIndex) {
|
ipcMain.on('captured', function(event, recordIndex) {
|
||||||
|
|
||||||
console.log(recordIndex);
|
console.log(recordIndex);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user