Cite: https://github.com/electron/electron/issues/25640
This commit is contained in:
Manav Rathi 2024-04-20 10:39:18 +05:30
parent 7c1207fb9a
commit 13542c1511
No known key found for this signature in database

View file

@ -205,6 +205,8 @@ const createMainWindow = async () => {
window.webContents.reload();
});
// "The unresponsive event is fired when Chromium detects that your
// webContents is not responding to input messages for > 30 seconds."
window.webContents.on("unresponsive", () => {
log.error(
"Main window's webContents are unresponsive, will restart the renderer process",