Skip to content

Commit

Permalink
refactor: cleanup unresponsive event
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
  • Loading branch information
hacdias committed Jan 10, 2022
1 parent d14dcc1 commit d4f4fa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ const createWindow = () => {
logger.error(`[web ui] crashed: ${reason}, code: ${exitCode}`)
})

window.webContents.on('unresponsive', event => {
logger.error(`[web ui] unresponsive: ${event.toString()}`)
window.webContents.on('unresponsive', () => {
logger.error('[web ui] the webui became unresponsive')
})

window.on('resize', () => {
Expand Down

0 comments on commit d4f4fa2

Please sign in to comment.