feat: add error console logging for auto-update
This commit is contained in:
parent
5579a12cf3
commit
0271311bca
1 changed files with 4 additions and 1 deletions
|
@ -4,7 +4,6 @@ import SnackBar from 'component/snackBar';
|
|||
import SplashScreen from 'component/splash';
|
||||
import * as ACTIONS from 'constants/action_types';
|
||||
import { ipcRenderer, remote, shell } from 'electron';
|
||||
import lbry from 'lbry';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { Provider } from 'react-redux';
|
||||
|
@ -100,6 +99,10 @@ const init = () => {
|
|||
app.store.dispatch(doAutoUpdate());
|
||||
});
|
||||
|
||||
autoUpdater.on('error', (error) => {
|
||||
console.error(error.message)
|
||||
});
|
||||
|
||||
if (['win32', 'darwin'].includes(process.platform)) {
|
||||
autoUpdater.on('update-available', () => {
|
||||
console.log('Update available');
|
||||
|
|
Loading…
Add table
Reference in a new issue