Skip to content

Commit

Permalink
updater fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmajh committed Feb 2, 2021
1 parent e614504 commit 4708bef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,18 @@ function createWindow() {

// Open the DevTools.
// mainWindow.webContents.openDevTools()

const page = mainWindow.webContents;

page.once('did-frame-finish-load', () => {
console.log('do we check for updates')
const checkOS = isWindowsOrmacOS();
if (checkOS && !isDev) {
// Initate auto-updates on macOs and windows
console.log('yes check for update');
appUpdater();
} else {
console.log('no dont check for update');
}
});
}
Expand Down

0 comments on commit 4708bef

Please sign in to comment.