mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
handle exceptions
This commit is contained in:
@@ -4,7 +4,11 @@ const errorUtils = require('../common/error-utils')
|
||||
module.exports = () => {
|
||||
// Call webFrame method
|
||||
ipcRenderer.on('ELECTRON_INTERNAL_RENDERER_WEB_FRAME_METHOD', (event, method, args) => {
|
||||
webFrame[method](...args)
|
||||
try {
|
||||
webFrame[method](...args)
|
||||
} catch (error) {
|
||||
console.error(`${error}`)
|
||||
}
|
||||
})
|
||||
|
||||
ipcRenderer.on('ELECTRON_INTERNAL_RENDERER_ASYNC_WEB_FRAME_METHOD', (event, requestId, method, args) => {
|
||||
|
||||
Reference in New Issue
Block a user