app: log app errors to console
This commit is contained in:
parent
95397416f3
commit
3f2a100465
1 changed files with 2 additions and 6 deletions
|
@ -54,12 +54,8 @@ function firstRunWindow() {
|
||||||
|
|
||||||
// and load the index.html of the app.
|
// and load the index.html of the app.
|
||||||
welcomeWindow.loadURL(MAIN_WINDOW_WEBPACK_ENTRY)
|
welcomeWindow.loadURL(MAIN_WINDOW_WEBPACK_ENTRY)
|
||||||
|
|
||||||
welcomeWindow.on('ready-to-show', () => welcomeWindow.show())
|
welcomeWindow.on('ready-to-show', () => welcomeWindow.show())
|
||||||
|
|
||||||
// for debugging
|
|
||||||
// welcomeWindow.webContents.openDevTools()
|
|
||||||
|
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
app.dock.hide()
|
app.dock.hide()
|
||||||
}
|
}
|
||||||
|
@ -215,10 +211,10 @@ if (app.isPackaged) {
|
||||||
}
|
}
|
||||||
|
|
||||||
autoUpdater.on('error', e => {
|
autoUpdater.on('error', e => {
|
||||||
logger.error(`update check failed - ${e.message}`)
|
console.error(`update check failed - ${e.message}`)
|
||||||
})
|
})
|
||||||
|
|
||||||
autoUpdater.on('update-downloaded', (event, releaseNotes, releaseName) => {
|
autoUpdater.on('update-downloaded', (_, releaseNotes, releaseName) => {
|
||||||
dialog
|
dialog
|
||||||
.showMessageBox({
|
.showMessageBox({
|
||||||
type: 'info',
|
type: 'info',
|
||||||
|
|
Loading…
Reference in a new issue