From 356f93ff04bbc0a14a66659db01fc80b0e7c3858 Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Wed, 30 Aug 2017 19:14:28 +0200 Subject: [PATCH] Ensure correct update channel is displayed in About window (#2130) --- app/menus/menu.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/menus/menu.js b/app/menus/menu.js index 4f4493db..fff07157 100644 --- a/app/menus/menu.js +++ b/app/menus/menu.js @@ -19,7 +19,11 @@ module.exports = (createWindow, updatePlugins, getLoadedPluginVersions) => { const config = getConfig(); const {commands} = getKeymaps(); - const updateChannel = config.canaryUpdates ? 'canary' : 'stable'; + let updateChannel = 'stable'; + + if (config && config.updateChannel && config.updateChannel === 'canary') { + updateChannel = 'canary'; + } const showAbout = () => { const loadedPlugins = getLoadedPluginVersions();