👷 This calls for tests

This commit is contained in:
Felix Rieseberg 2017-11-18 00:51:27 -08:00
parent 9a2d103e7f
commit 3311e0bd67
2 changed files with 24 additions and 0 deletions

View file

@ -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) {