Skip to content

Commit

Permalink
don’t do anything in webview for crash event
Browse files Browse the repository at this point in the history
  • Loading branch information
bridiver authored and syuan100 committed Nov 9, 2017
1 parent b99d81e commit 46f0f3e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/renderer/components/frame/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -723,18 +723,6 @@ class Frame extends React.Component {
windowActions.setNavigated(e.url, this.props.frameKey, false, this.props.tabId)
}
}, { passive: true })
this.webview.addEventListener('crashed', (e) => {
if (this.frame.isEmpty()) {
return
}
windowActions.setFrameError(this.frame, {
event_type: 'crashed',
title: 'unexpectedError',
url: this.props.location
})
appActions.loadURLRequested(this.props.tabId, 'about:error')
this.webview = false
}, { passive: true })
this.webview.addEventListener('did-fail-provisional-load', (e) => {
if (e.isMainFrame) {
loadEnd(false, e.validatedURL, false)
Expand Down

0 comments on commit 46f0f3e

Please sign in to comment.