Skip to content

Commit

Permalink
Ensure correct update channel is displayed in About window (#2130)
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Aug 30, 2017
1 parent a2d4936 commit 356f93f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/menus/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 356f93f

Please sign in to comment.