From fa1f137fab137a5a8a18f9b6a4ce59517c653e36 Mon Sep 17 00:00:00 2001 From: Alex Brazier Date: Fri, 5 May 2017 22:37:49 +0100 Subject: [PATCH] Fix bug on some OS versions on about window, closes #427 --- src/background/autoUpdate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background/autoUpdate.js b/src/background/autoUpdate.js index 3d7dcda683..39577f888d 100644 --- a/src/background/autoUpdate.js +++ b/src/background/autoUpdate.js @@ -121,7 +121,7 @@ function checkForUpdates () { updateFile.autoUpdate = autoUpdate; userDataDir.write(updateStoreFile, updateFile, { atomic: true }); } else if (autoUpdate === 'auto') { - e.returnValue = updateFile.autoUpdate; + e.returnValue = !!updateFile.autoUpdate; } else { checkForUpdatesEvent = e; autoUpdater.checkForUpdates();