Skip to content

Commit

Permalink
Made canary auto updates work (vercel#2235)
Browse files Browse the repository at this point in the history
  • Loading branch information
leo authored Sep 20, 2017
1 parent 4c71c99 commit 4f9bcf7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/auto-updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ const {platform} = process;

let isInit = false;

function init() {
async function init() {
autoUpdater.on('error', (err, msg) => {
console.error('Error fetching updates', msg + ' (' + err.stack + ')');
});

const config = retry(() => {
const content = getConfig();
const config = await retry(async () => {
const content = await getConfig();

if (!content) {
throw new Error('No config content loaded');
Expand Down

0 comments on commit 4f9bcf7

Please sign in to comment.