I’ve been using electron as a way to replace phantomjs on my server (which has no GUI, I’m using xvfb).
I have had an issue where electron seemingly gets stuck and no errors are printed to the console. It turns out that I DID have an error but I couldn’t see it because it was going to an alert popup which was showing up in xfvb, and consequentially locks electron up (at least this is my best guess).
Is there a way to disable alert dialogs when errors occur, or better yet disable ALL dialogs? Dialogs are useless in headless mode (granted electron is not intended to be a headless app) and just get things stuck.
I’m not necessarily looking for a flag ‘disable_dialogs’. Perhaps I could override one method in the main process so that dialogs don’t open, or maybe just that they close instantly?