Skip to content

Commit

Permalink
fix(portative): fix updater check #71
Browse files Browse the repository at this point in the history
  • Loading branch information
DEgITx committed Jan 26, 2019
1 parent b6d5076 commit b524845
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,13 @@ app.on("ready", async () => {

if(portative)
{
autoUpdater.getUpdateInfo().then(info => {
autoUpdater.getUpdateInfoAndProvider().then(({info}) => {
if(!info)
{
logTE('updater', 'info not provided for updater')
return
}

if(info.version == app.getVersion())
{
logT('updater', 'update not founded for version', app.getVersion())
Expand Down

0 comments on commit b524845

Please sign in to comment.