Skip to content

Commit 4f9bcf7

Browse files
authored
Made canary auto updates work (#2235)
1 parent 4c71c99 commit 4f9bcf7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/auto-updater.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ const {platform} = process;
1212

1313
let isInit = false;
1414

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

20-
const config = retry(() => {
21-
const content = getConfig();
20+
const config = await retry(async () => {
21+
const content = await getConfig();
2222

2323
if (!content) {
2424
throw new Error('No config content loaded');

0 commit comments

Comments
 (0)