Update electron, electron-builder and add more preload logging
* electron to 8.0.2, electron-builder to 22.3.5 * preload.js: add last-ditch logging on startup error
This commit is contained in:
parent
9fdc7a7ece
commit
6e4dc2a117
4 changed files with 70 additions and 230 deletions
|
@ -412,7 +412,14 @@ try {
|
|||
/* eslint-enable global-require, import/no-extraneous-dependencies */
|
||||
}
|
||||
} catch (error) {
|
||||
window.log.info('preload error!', error.stack);
|
||||
/* eslint-disable no-console */
|
||||
if (console._log) {
|
||||
console._log('preload error!', error.stack);
|
||||
} else {
|
||||
console.log('preload error!', error.stack);
|
||||
}
|
||||
/* eslint-enable no-console */
|
||||
|
||||
throw error;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue