👷 This calls for tests
This commit is contained in:
parent
9a2d103e7f
commit
3311e0bd67
2 changed files with 24 additions and 0 deletions
|
@ -217,6 +217,10 @@ app.on('ready', function () {
|
|||
window.webContents.send('executeJavaScript-promise-response', result)
|
||||
}).catch((error) => {
|
||||
window.webContents.send('executeJavaScript-promise-error', error)
|
||||
|
||||
if (error && error.name) {
|
||||
window.webContents.send('executeJavaScript-promise-error-name', error.name)
|
||||
}
|
||||
})
|
||||
|
||||
if (!hasCallback) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue