Skip to content

Commit

Permalink
Added --headless flag #8
Browse files Browse the repository at this point in the history
  • Loading branch information
Soltares committed Oct 4, 2024
1 parent d8812f9 commit aca639c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion electron/src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ app.whenReady().then(async () => {
}
}

apiProcess.stdout?.on('data', createWindowOnServerListening)
console.log('[electron] Arguments', process.argv)
if (!process.argv.includes('--headless')) {
apiProcess.stdout?.on('data', createWindowOnServerListening)
}
apiProcess.postMessage({ event: 'version', body: app.getVersion() })
// apiProcess.postMessage({ event: 'updateChannel', body: autoUpdater.channel })

Expand Down

0 comments on commit aca639c

Please sign in to comment.