app/src/helpers/helpers.js
function debugLog(browserWindow, message) {
  // need the timeout as it takes time for the preload javascript to be loaded in the window
  setTimeout(() => {
    browserWindow.webContents.send('debug', message);
  }, 3000);
  log.info(message);
}
function debugLog(browserWindow, message) {
  // need the timeout as it takes time for the preload javascript to be loaded in the window
  setTimeout(() => {
    browserWindow.webContents.send('debug', message);
  }, 3000);
  log.info(message);
}
function debugLog ( browserWindow , message ) { // need the timeout as it takes time for the preload javascript to be loaded in the window setTimeout ( ( ) => { browserWindow . webContents . send ( 'debug' , message ) ; } , 3000 ) ; log . info ( message ) ; }
Helper method to print debug messages from the main process in the browser window
@param {BrowserWindow} browserWindow
@param message
Helper method to print debug messages from the main process in the browser window