From 861c90c3d851e7ef0dee90d64de6f09af357b7ea Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 5 Jun 2020 18:41:29 +0100 Subject: [PATCH] delint Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/updater.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/updater.js b/src/updater.js index 7946ca1..edb23eb 100644 --- a/src/updater.js +++ b/src/updater.js @@ -83,7 +83,7 @@ autoUpdater.on('update-available', function() { // is if the user used the Manual Update check and there is no update newer than the one we // have downloaded, so show it to them as the latest again. ipcChannelSendUpdateStatus(true); - mainWindow.webContents.send('update-downloaded', latestUpdateDownloaded); + global.mainWindow.webContents.send('update-downloaded', latestUpdateDownloaded); } else { ipcChannelSendUpdateStatus(false); } @@ -95,5 +95,5 @@ autoUpdater.on('update-downloaded', (ev, releaseNotes, releaseName, releaseDate, if (!global.mainWindow) return; // forward to renderer latestUpdateDownloaded = { releaseNotes, releaseName, releaseDate, updateURL }; - mainWindow.webContents.send('update-downloaded', latestUpdateDownloaded); + global.mainWindow.webContents.send('update-downloaded', latestUpdateDownloaded); });