Skip to content

Commit

Permalink
refactor: replace deprecated 'crashed' event
Browse files Browse the repository at this point in the history
electron/electron#23096

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
  • Loading branch information
hacdias committed Jan 21, 2022
1 parent 861c9aa commit a2ff6e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webui/index.js
Expand Up @@ -39,8 +39,8 @@ const createWindow = () => {
window.webContents.openDevTools()
}

window.webContents.on('crashed', event => {
logger.error(`[web ui] crashed: ${event.toString()}`)
window.webContents.on('render-process-gone', (_, { reason, exitCode }) => {
logger.error(`[web ui] crashed: ${reason}, code: ${exitCode}`)
})

window.webContents.on('unresponsive', event => {
Expand Down

0 comments on commit a2ff6e7

Please sign in to comment.