Is there a way to disable alert dialogs when errors occur in Electron App, 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?
Is there a way to disable alert dialogs when errors occur in Electron App, 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?
Someone has left the following on that discussion thread.
Disable error dialogs by overriding
const electron = require('electron');
const dialog = electron.dialog;
// Disable error dialogs by overriding
dialog.showErrorBox = function(title, content) {
console.log(`${title}\n${content}`);
};