Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Unable to relaunch window after the process crash #454

@tnah-hcmus

Description

@tnah-hcmus

Hello, i got some troubles.
I tried following guide below in "Relaunch window after the process crash" section, but i got a blank page and unable to reach win.reload() .

win.webContents.on('crashed', () => {
	const options = {
		type: 'info',
		title: 'Renderer Process Crashed',
		message: 'This process has crashed.',
		buttons: ['Reload', 'Close']
	}
	dialog.showMessageBox(options, (index) => {
		if (index === 0) win.reload()
		else win.close()
	})
})

This demo snippet only work with electron 6 below, Can I reload after the process crash in higher version ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions