Electron CefJSDialogHandler - OnJSDialog

Hello,
I’m more used to CEF than Electron :slight_smile:, I wanted to give it a shot for a specific project.
I’m loading a page with LoadURL. This page contains an alert and I want to remove it (as well as prompt/confirm).

What I was doing with CEF is to modify the JSDialogHandler::OnJSDialog:
{
suppressMessage = true;
return false;
}

Is there a way to do so with Electron ? Or should I get the source code and rebuild it myself with the modification ?

Note that ipcMain.removeAllListeners(“ELECTRON_BROWSER_WINDOW_ALERT”) doesn’t seem to work for me :confused:

Thank you :slight_smile: