Made canary auto updates work (#2235)

This commit is contained in:
Leo Lamprecht 2017-09-20 19:35:50 +02:00 committed by GitHub
parent 4c71c99325
commit 4f9bcf77bc

View file

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