From 4708befe06f0b4f50703b3f32c98762d97937090 Mon Sep 17 00:00:00 2001 From: Jonathan Ma Date: Tue, 2 Feb 2021 12:06:08 -0500 Subject: [PATCH] updater fix --- main.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.js b/main.js index 9df0394..eb852b9 100644 --- a/main.js +++ b/main.js @@ -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'); } }); }