Ensure correct update channel is displayed in About window (#2130)

This commit is contained in:
Leo Lamprecht 2017-08-30 19:14:28 +02:00 committed by GitHub
parent a2d4936e50
commit 356f93ff04

View file

@ -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();