Skip to content

Commit

Permalink
fix(core): crashed event has been replaced with render-process-gone
Browse files Browse the repository at this point in the history
There's a few reasons on why a window has crashed more than being killed.
  • Loading branch information
markmcdowell committed Dec 16, 2020
1 parent 5d86470 commit fc4fe14
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ export class CrashedWindowFactory implements IWindowFactory {
public async create(configuration: IConfiguration) {
const window = await this.windowFactory.create(configuration);

window.webContents.on("crashed", async (_, killed) => {
window.webContents.on("render-process-gone", async (_, details) => {
const options = {
type: "info",
title: "Window Crashed",
message: `${configuration.metadata.name} has crashed.`,
detail: killed ? "The process was killed." : undefined,
detail: details.reason,
buttons: ["Reload", "Close"],
};

Expand Down

0 comments on commit fc4fe14

Please sign in to comment.