From 14b7162138b8d00b0cb8d9b41bb82bb912f22f37 Mon Sep 17 00:00:00 2001 From: sokcuri Date: Fri, 6 Oct 2017 16:22:18 +0900 Subject: [PATCH] Always visible to version information --- src/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 11375b3..ca53142 100644 --- a/src/index.js +++ b/src/index.js @@ -621,11 +621,10 @@ app.on('ready', () => { if (err) { // error check win.webContents.send('toast-message', 'Update check failed'); - return ; } const current = VERSION.value; - if (versionCompare(current, latest) < 0) { + if (!err && versionCompare(current, latest) < 0) { win.webContents.send('toast-message', 'Update required: newest version is ' + latest); } win.webContents.send('toast-message', VERSION.message);