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

Unable to relaunch window after the process crash #454

Open
tnah-hcmus opened this issue Jun 18, 2020 · 0 comments
Open

Unable to relaunch window after the process crash #454

tnah-hcmus opened this issue Jun 18, 2020 · 0 comments

Comments

@tnah-hcmus
Copy link

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 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@tnah-hcmus and others